This commit is contained in:
2020-06-16 23:25:11 +00:00
parent 1bfaf1b2db
commit ae8f88ce32
4 changed files with 32 additions and 5 deletions

View File

@@ -260,6 +260,7 @@ export default {
},
created() {
//Detect version change, wipe persisted form settings if has changed
let currentVersion = window.$gz.clientInfo.version;
if (currentVersion != window.$gz.store.state.lastClientVersion) {
window.$gz.store.commit(

View File

@@ -171,7 +171,9 @@ export default {
"AttachmentNotes",
"Upload",
"AttachmentFileName",
"FileAttachment"
"FileAttachment",
"MaintenanceExpired",
"MaintenanceExpiredNote"
],
////////////////////////////////////////////////////////

View File

@@ -9,7 +9,7 @@
:data-cy="!!$ay.dev ? 'gzconfirm' : false"
>
<v-card elevation="24">
<v-card-title class="headline lighten-2" primary-title>
<v-card-title class="text-h6 text-sm-h5 grey lighten-4">
<template v-if="options.type == 'success'">
<v-icon large color="success">fa-check-circle</v-icon>
</template>
@@ -22,11 +22,13 @@
<template v-if="options.type == 'error'">
<v-icon large color="error">fa-exclamation-triangle</v-icon>
</template>
<span v-if="options.title"> {{ options.title }} </span>
<span v-if="options.title" class="ml-5"> {{ options.title }} </span>
</v-card-title>
<v-card-text>
{{ options.message }}
<v-card-text
class="text-body-1 text-sm-h6 my-5"
v-html="options.message"
>
</v-card-text>
<v-card-actions>
@@ -69,6 +71,9 @@ export default {
}),
methods: {
open(options) {
if (options.message.includes("\n")) {
options.message = options.message.replace(/\n/g, "<br />");
}
this.options = Object.assign(this.options, options);
this.maxWidth = Math.floor(window.innerWidth * 0.9);
let calculatedWidth = Math.floor(window.innerWidth * 0.5);

View File

@@ -217,6 +217,15 @@ export default {
},
created() {
let vm = this;
(async function() {
await window.$gz.dialog.displayLTModalNotificationMessage(
"The support and updates subscription has now expired\nAyaNova can not be updated and support is no longer available",
"Maintenance expired",
"error"
);
})();
window.$gz.eventBus.$emit("menu-change", {
isMain: true,
icon: "",
@@ -257,6 +266,16 @@ export default {
auth
.authenticate(vm.input.username, vm.input.password)
.then(() => {
//check if support and updates has expired and show warning if so
if (vm.$store.state.globalSettings.maintenanceExpired) {
(async function() {
await window.$gz.dialog.displayLTModalNotificationMessage(
"MaintenanceExpiredNote",
"MaintenanceExpired",
"error"
);
})();
}
if (vm.$store.state.openObject != null) {
window.$gz.eventBus.$emit("openobject", null);
} else {