From 4a03946ea874ca7f25e993426b1630993234cd86 Mon Sep 17 00:00:00 2001 From: Ronak Patel Date: Fri, 20 May 2022 21:10:29 +0530 Subject: [PATCH 1/3] temp branch --- appinfo/info.xml | 8 ++++++++ lib/Migration/SetDefaultApp.php | 24 ++++++++++++++++++++++++ lib/Migration/UnsetDefaultApp.php | 27 +++++++++++++++++++++++++++ 3 files changed, 59 insertions(+) create mode 100644 lib/Migration/SetDefaultApp.php create mode 100644 lib/Migration/UnsetDefaultApp.php diff --git a/appinfo/info.xml b/appinfo/info.xml index 57d4f89..734489e 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -20,4 +20,12 @@ ecloud-dashboard.page.index + + + OCA\EcloudDashboard\Migration\SetDefaultApp + + + OCA\EcloudDashboard\Migration\UnsetDefaultApp + + diff --git a/lib/Migration/SetDefaultApp.php b/lib/Migration/SetDefaultApp.php new file mode 100644 index 0000000..4b4869d --- /dev/null +++ b/lib/Migration/SetDefaultApp.php @@ -0,0 +1,24 @@ +config = $config; + } + + public function getName() { + return 'Set the custom email template'; + } + + public function run(IOutput $output) { + $this->config->setSystemValue('defaultapp', 'ecloud-dashboard,dashboard'); + } +} diff --git a/lib/Migration/UnsetDefaultApp.php b/lib/Migration/UnsetDefaultApp.php new file mode 100644 index 0000000..73898c5 --- /dev/null +++ b/lib/Migration/UnsetDefaultApp.php @@ -0,0 +1,27 @@ +config = $config; + } + + public function getName() { + return 'Reset the email template to default'; + } + + public function run(IOutput $output) { + if ($this->config->getSystemValue('defaultapp') === EMailTemplate::class) { + $this->config->deleteSystemValue('defaultapp'); + } + } +} + -- GitLab From af41446ea80d6f11dba06775921b95abca172c14 Mon Sep 17 00:00:00 2001 From: Ronak Patel Date: Tue, 24 May 2022 16:14:18 +0530 Subject: [PATCH 2/3] changed author and bump version --- appinfo/info.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appinfo/info.xml b/appinfo/info.xml index 734489e..e22c0c3 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -5,9 +5,9 @@ ECloud dashboard /e/ Cloud Dashboard - 0.0.2 + 1.0.0 agpl - Ronak Patel + ECORP SAS EcloudDashboard dashboard https://gitlab.e.foundation/e/infra/selfhost/nextcloud-apps/ecloud-dashboard/-/issues -- GitLab From 3367429535c9f878f271bead25b4e9fe783f9df0 Mon Sep 17 00:00:00 2001 From: Ronak Patel Date: Wed, 25 May 2022 13:54:50 +0530 Subject: [PATCH 3/3] removed migration step --- appinfo/info.xml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/appinfo/info.xml b/appinfo/info.xml index e22c0c3..e053963 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -20,12 +20,4 @@ ecloud-dashboard.page.index - - - OCA\EcloudDashboard\Migration\SetDefaultApp - - - OCA\EcloudDashboard\Migration\UnsetDefaultApp - - -- GitLab