From ba732b2e5e8593d9a30ff4bd6c28abc204705da9 Mon Sep 17 00:00:00 2001 From: Ronak Patel Date: Tue, 13 Feb 2024 22:55:57 -0800 Subject: [PATCH 1/4] disable referral program --- appinfo/info.xml | 2 +- src/components/StorageLayout.vue | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/appinfo/info.xml b/appinfo/info.xml index 9eed5e4..5eb13a5 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -5,7 +5,7 @@ Murena Dashboard Murena Dashboard - 3.0.1 + 3.0.2 agpl Murena MurenaDashboard diff --git a/src/components/StorageLayout.vue b/src/components/StorageLayout.vue index 3664154..b721447 100755 --- a/src/components/StorageLayout.vue +++ b/src/components/StorageLayout.vue @@ -45,7 +45,7 @@ -
+
@@ -79,6 +79,7 @@ export default { return { storageInfo: [], storageFetchStatus: false, + isReferralProgramActive: false, shopReferralProgramUrl: loadState('murena-dashboard', 'shopReferralProgramUrl'), increaseStorageUrl: loadState('murena-dashboard', 'increaseStorageUrl'), appName: 'murena-dashboard', -- GitLab From 0abb1c6bcc0fdce8a39dab5fdacc136275c7cec0 Mon Sep 17 00:00:00 2001 From: Ronak Patel Date: Tue, 13 Feb 2024 22:56:36 -0800 Subject: [PATCH 2/4] disable referral program --- src/components/StorageLayout.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/StorageLayout.vue b/src/components/StorageLayout.vue index b721447..50ad2ac 100755 --- a/src/components/StorageLayout.vue +++ b/src/components/StorageLayout.vue @@ -79,7 +79,7 @@ export default { return { storageInfo: [], storageFetchStatus: false, - isReferralProgramActive: false, + isReferralProgramActive: false, shopReferralProgramUrl: loadState('murena-dashboard', 'shopReferralProgramUrl'), increaseStorageUrl: loadState('murena-dashboard', 'increaseStorageUrl'), appName: 'murena-dashboard', -- GitLab From 3dd4b62369ff26c439d7f9a61ad500c8291ae2e3 Mon Sep 17 00:00:00 2001 From: Ronak Patel Date: Wed, 14 Feb 2024 14:44:25 -0800 Subject: [PATCH 3/4] added in system config --- lib/Controller/PageController.php | 2 ++ src/components/StorageLayout.vue | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php index 4281847..2a3c7c3 100755 --- a/lib/Controller/PageController.php +++ b/lib/Controller/PageController.php @@ -39,10 +39,12 @@ class PageController extends Controller { $storageUrl = $this->config->getAppValue('increasestoragebutton', 'link', ''); $entries = $this->appsService->getAppEntries(); $displayName = $this->userSession->getUser()->getDisplayName(); + $isReferralProgramActive = $this->config->getSystemValue('isReferralProgramActive', false); $this->initialState->provideInitialState('shopReferralProgramUrl', $referralUrl); $this->initialState->provideInitialState('increaseStorageUrl', $storageUrl); $this->initialState->provideInitialState('entries', $entries); $this->initialState->provideInitialState('displayName', $displayName); + $this->initialState->provideInitialState('isReferralProgramActive', $isReferralProgramActive); $documentsBaseDirectory = $this->appsService->getDocumentsFolder(); $this->initialState->provideInitialState('documentsBaseDirectory', $documentsBaseDirectory); diff --git a/src/components/StorageLayout.vue b/src/components/StorageLayout.vue index 50ad2ac..a539a23 100755 --- a/src/components/StorageLayout.vue +++ b/src/components/StorageLayout.vue @@ -79,7 +79,7 @@ export default { return { storageInfo: [], storageFetchStatus: false, - isReferralProgramActive: false, + isReferralProgramActive: loadState('murena-dashboard', 'isReferralProgramActive'), shopReferralProgramUrl: loadState('murena-dashboard', 'shopReferralProgramUrl'), increaseStorageUrl: loadState('murena-dashboard', 'increaseStorageUrl'), appName: 'murena-dashboard', -- GitLab From 1ec0a84724a6e45932652540eca2feadc5fb8b31 Mon Sep 17 00:00:00 2001 From: Ronak Patel Date: Wed, 14 Feb 2024 14:45:01 -0800 Subject: [PATCH 4/4] added in system config --- lib/Controller/PageController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php index 2a3c7c3..ecd1106 100755 --- a/lib/Controller/PageController.php +++ b/lib/Controller/PageController.php @@ -39,7 +39,7 @@ class PageController extends Controller { $storageUrl = $this->config->getAppValue('increasestoragebutton', 'link', ''); $entries = $this->appsService->getAppEntries(); $displayName = $this->userSession->getUser()->getDisplayName(); - $isReferralProgramActive = $this->config->getSystemValue('isReferralProgramActive', false); + $isReferralProgramActive = $this->config->getSystemValue('is_referral_program_active', false); $this->initialState->provideInitialState('shopReferralProgramUrl', $referralUrl); $this->initialState->provideInitialState('increaseStorageUrl', $storageUrl); $this->initialState->provideInitialState('entries', $entries); -- GitLab