From db56c56c42058c4e48f1aca763de5acc4db1ce28 Mon Sep 17 00:00:00 2001 From: Sandra Westerhoff Date: Tue, 15 Feb 2022 13:40:27 +0100 Subject: [PATCH 1/2] Update: added maintenance banner for deployment (coscine/issues#1756) --- src/LoginApp.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/LoginApp.vue b/src/LoginApp.vue index 3ffac41..352bb8f 100644 --- a/src/LoginApp.vue +++ b/src/LoginApp.vue @@ -218,6 +218,8 @@ export default Vue.extend({ }, createNotificationText(type: any): any { switch (type) { + case "Eingriff": + return this.$t("banner.maintenance.notificationDeployment"); case "Störung": return this.$t("banner.maintenance.notificationMaintenance"); case "Teilstörung": -- GitLab From 9ed4484025581ce4f5170e62eef7369b649d71f5 Mon Sep 17 00:00:00 2001 From: Sandra Westerhoff Date: Mon, 21 Feb 2022 09:43:55 +0100 Subject: [PATCH 2/2] Update: Removed link and bracket at the end of the banner text (coscine/issues#1756) --- src/LoginApp.vue | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/src/LoginApp.vue b/src/LoginApp.vue index 352bb8f..fddb588 100644 --- a/src/LoginApp.vue +++ b/src/LoginApp.vue @@ -10,8 +10,8 @@ v-show="displayMaintenceNotice" id="notificationBanner" :bannerText1="maintenanceNotices" - :bannerText2="$t('banner.maintenance.notificationEndText')" - :linkText="$t('banner.maintenance.moreInformation')" + :bannerText2="maintenanceNoticesEnd" + :linkText="maintenanceLinkText" :bannerLink="bannerLink" :visible="true" :dismissable="false" @@ -160,6 +160,8 @@ export default Vue.extend({ return { bannerLink: "", maintenanceNotices: "", + maintenanceNoticesEnd: "", + maintenanceLinkText: "", coscineImageBlue: rootUrl + coscineImageBluePath, coscineImage: rootUrl + coscineImagePath, imageEnabled, @@ -212,6 +214,12 @@ export default Vue.extend({ this.maintenanceNotices = this.createNotificationText( response.data.type ); + this.maintenanceNoticesEnd = this.createNotificationEndText( + response.data.type + ); + this.maintenanceLinkText = this.createNotificationLinkText( + response.data.type + ); } } }); @@ -236,6 +244,22 @@ export default Vue.extend({ return this.$t("banner.maintenance.notificationDefaultText"); } }, + createNotificationEndText(type: any): any { + if(type == "Eingriff"){ + return ""; + } + else{ + return this.$t("banner.maintenance.notificationEndText"); + } + }, + createNotificationLinkText(type: any): any { + if(type == "Eingriff"){ + return ""; + } + else{ + return this.$t("banner.maintenance.moreInformation"); + } + }, loginBack() { this.currentInputCard = "LoginMain"; }, -- GitLab