Skip to content

Commit

Permalink
Remove download links. (Use composer instead)
Browse files Browse the repository at this point in the history
  • Loading branch information
vovayatsyuk committed May 31, 2019
1 parent 8031bf2 commit 6c6e546
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
9 changes: 0 additions & 9 deletions Ui/Component/Listing/Columns/ModuleActions.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@ public function prepareDataSource(array $dataSource)
return $dataSource;
}

$hasSubscription = false;
if ($subscription = $this->moduleFactory->create()->load('Swissup_SubscriptionChecker')) {
$hasSubscription = (bool) $subscription->getLocal();
}

foreach ($dataSource['data']['items'] as & $item) {

// add installer links
Expand Down Expand Up @@ -97,10 +92,6 @@ public function prepareDataSource(array $dataSource)
continue;
}

if ($link['key'] === 'download_link' && !$hasSubscription) {
continue;
}

$item[$this->getData('name')][$link['key']] = [
'href' => $item[$link['key']],
'label' => __($link['label'])
Expand Down
4 changes: 0 additions & 4 deletions view/adminhtml/ui_component/swissup_installer_listing.xml
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,6 @@
<item name="label" xsi:type="string">Open Marketplace</item>
<item name="key" xsi:type="string">marketplace_link</item>
</item>
<item name="download" xsi:type="array">
<item name="label" xsi:type="string">Download Latest Version</item>
<item name="key" xsi:type="string">download_link</item>
</item>
<item name="docs" xsi:type="array">
<item name="label" xsi:type="string">Read Documentation</item>
<item name="key" xsi:type="string">docs_link</item>
Expand Down

1 comment on commit 6c6e546

@ci-swissuplabs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please verify your commit as it didn't pass some tests

Please sign in to comment.