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