From 8f624989a4b42313d91026f1164fc44b12fd22a6 Mon Sep 17 00:00:00 2001 From: Andrey Borysenko Date: Wed, 23 Oct 2024 23:24:24 +0300 Subject: [PATCH] WIP: sync property name case Signed-off-by: Andrey Borysenko [skip ci] --- lib/Controller/ExAppsPageController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Controller/ExAppsPageController.php b/lib/Controller/ExAppsPageController.php index dd69d155..8455ebc7 100644 --- a/lib/Controller/ExAppsPageController.php +++ b/lib/Controller/ExAppsPageController.php @@ -203,7 +203,7 @@ public function listApps(): JSONResponse { }))[0]['releases'][0]['version']; } - $appData['canUninstall'] = !$appData['active'] && $appData['removable'] + $appData['canUnInstall'] = !$appData['active'] && $appData['removable'] && (isset($appData['status']['action']) && $appData['status']['action'] !== 'deploy') || (isset($appData['status']['action']) && $appData['status']['action'] === 'init') || !empty($appData['status']['error']); @@ -282,7 +282,7 @@ private function buildLocalAppsList(array $apps, array $exApps): array { 'missingMaxOwnCloudVersion' => false, 'missingMinOwnCloudVersion' => false, 'canInstall' => true, // to allow "remove" command for manual-install - 'canUninstall' => !($exApp->getEnabled() === 1), + 'canUnInstall' => !($exApp->getEnabled() === 1), 'isCompatible' => true, 'screenshot' => '', 'score' => 0,