Changeset View
Changeset View
Standalone View
Standalone View
src/resources/vue/App.vue
Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | export default { | ||||
this.getFAQ() | this.getFAQ() | ||||
this.degradedWarning() | this.degradedWarning() | ||||
}, | }, | ||||
degradedWarning() { | degradedWarning() { | ||||
// Display "Account Degraded" warning on all pages | // Display "Account Degraded" warning on all pages | ||||
if (this.$root.isDegraded()) { | if (this.$root.isDegraded()) { | ||||
let message = this.$t('user.degraded-warning') | let message = this.$t('user.degraded-warning') | ||||
if (this.$store.state.authInfo.isDegraded) { | if (this.$root.authInfo.isDegraded) { | ||||
message += ' ' + this.$t('user.degraded-hint') | message += ' ' + this.$t('user.degraded-hint') | ||||
} | } | ||||
const html = `<div id="status-degraded" class="d-flex justify-content-center">` | const html = `<div id="status-degraded" class="d-flex justify-content-center">` | ||||
+ `<p class="alert alert-danger">${message}</p></div>` | + `<p class="alert alert-danger">${message}</p></div>` | ||||
$('#app > div.container').prepend(html) | $('#app > div.container').prepend(html) | ||||
} | } | ||||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |