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() { created() {
//Detect version change, wipe persisted form settings if has changed //Detect version change, wipe persisted form settings if has changed
let currentVersion = window.$gz.clientInfo.version; let currentVersion = window.$gz.clientInfo.version;
if (currentVersion != window.$gz.store.state.lastClientVersion) { if (currentVersion != window.$gz.store.state.lastClientVersion) {
window.$gz.store.commit( window.$gz.store.commit(

View File

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

View File

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

View File

@@ -217,6 +217,15 @@ export default {
}, },
created() { created() {
let vm = this; 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", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "", icon: "",
@@ -257,6 +266,16 @@ export default {
auth auth
.authenticate(vm.input.username, vm.input.password) .authenticate(vm.input.username, vm.input.password)
.then(() => { .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) { if (vm.$store.state.openObject != null) {
window.$gz.eventBus.$emit("openobject", null); window.$gz.eventBus.$emit("openobject", null);
} else { } else {