diff --git a/src/LoginApp.vue b/src/LoginApp.vue index 3ffac411834c12acd6bc5e4932ec1288bf446704..fddb5883a6cf56256b8bf3923c9b62378bd54fac 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,12 +214,20 @@ 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 + ); } } }); }, 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": @@ -234,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"; },