Changeset View
Changeset View
Standalone View
Standalone View
src/resources/vue/App.vue
Show All 35 Lines | export default { | ||||
this.$root.logoutUser(false) | this.$root.logoutUser(false) | ||||
this.$root.errorHandler(error) | this.$root.errorHandler(error) | ||||
}) | }) | ||||
} else { | } else { | ||||
this.isLoading = false | this.isLoading = false | ||||
} | } | ||||
}, | }, | ||||
methods: { | methods: { | ||||
childMounted() { | childMounted(event) { | ||||
this.$root.updateBodyClass() | this.$root.updateBodyClass() | ||||
this.getFAQ() | this.getFAQ() | ||||
// Display "Account Degraded" warning on all pages | |||||
if (this.$root.isDegraded()) { | |||||
let message = 'The account is degraded. Some features has been disabled.' | |||||
if (this.$store.state.authInfo.isDegraded) { | |||||
message += ' Please, make a payment.' | |||||
} | |||||
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 |