From e11bafa7b444b5646e44abf5633364e408771d42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Schauer-K=C3=B6ckeis?= Date: Wed, 11 Sep 2024 16:19:02 +0200 Subject: [PATCH 1/2] feat: Added Notifictaion Banner when updating the WelcomeMessage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Schauer-Köckeis --- src/views/administration/configuration/WelcomeMessage.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/views/administration/configuration/WelcomeMessage.vue b/src/views/administration/configuration/WelcomeMessage.vue index 57b2ae4de..0f0a3b666 100644 --- a/src/views/administration/configuration/WelcomeMessage.vue +++ b/src/views/administration/configuration/WelcomeMessage.vue @@ -103,7 +103,13 @@ export default { groupName: 'general', propertyName: 'welcome.message.enabled', propertyValue: this.isWelcomeMessage, - }); + }) + .then((response) => { + this.$toastr.s(this.$t('admin.configuration_saved')); + }) + .catch((error) => { + this.$toastr.w(this.$t('condition.unsuccessful_action')); + }); }, }, }; From f08458e30bc87aa9f078e5f44f78796ab886caf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Schauer-K=C3=B6ckeis?= Date: Wed, 11 Sep 2024 16:20:32 +0200 Subject: [PATCH 2/2] Fixed Linter Issue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Schauer-Köckeis --- .../administration/configuration/WelcomeMessage.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/views/administration/configuration/WelcomeMessage.vue b/src/views/administration/configuration/WelcomeMessage.vue index 0f0a3b666..42d223d31 100644 --- a/src/views/administration/configuration/WelcomeMessage.vue +++ b/src/views/administration/configuration/WelcomeMessage.vue @@ -99,11 +99,12 @@ export default { this.welcomeMessage !== '' ? this.welcomeMessage : ' ', ), }); - axios.post(url, { - groupName: 'general', - propertyName: 'welcome.message.enabled', - propertyValue: this.isWelcomeMessage, - }) + axios + .post(url, { + groupName: 'general', + propertyName: 'welcome.message.enabled', + propertyValue: this.isWelcomeMessage, + }) .then((response) => { this.$toastr.s(this.$t('admin.configuration_saved')); })