From 6c6e546c7405ad6c854b82183f019c92d83a8536 Mon Sep 17 00:00:00 2001 From: Vova Yatsyuk Date: Fri, 31 May 2019 10:58:12 +0300 Subject: [PATCH] Remove download links. (Use composer instead) --- Ui/Component/Listing/Columns/ModuleActions.php | 9 --------- .../adminhtml/ui_component/swissup_installer_listing.xml | 4 ---- 2 files changed, 13 deletions(-) diff --git a/Ui/Component/Listing/Columns/ModuleActions.php b/Ui/Component/Listing/Columns/ModuleActions.php index 367b17f..911a212 100644 --- a/Ui/Component/Listing/Columns/ModuleActions.php +++ b/Ui/Component/Listing/Columns/ModuleActions.php @@ -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 @@ -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']) diff --git a/view/adminhtml/ui_component/swissup_installer_listing.xml b/view/adminhtml/ui_component/swissup_installer_listing.xml index e40acb7..32e7725 100644 --- a/view/adminhtml/ui_component/swissup_installer_listing.xml +++ b/view/adminhtml/ui_component/swissup_installer_listing.xml @@ -145,10 +145,6 @@ Open Marketplace marketplace_link - - Download Latest Version - download_link - Read Documentation docs_link