case 4491
This commit is contained in:
@@ -45,14 +45,15 @@ export default {
|
|||||||
//WARNING
|
//WARNING
|
||||||
window.$gz.eventBus.$on("notify-warning", function handleNotifyWarn(
|
window.$gz.eventBus.$on("notify-warning", function handleNotifyWarn(
|
||||||
msg,
|
msg,
|
||||||
helpUrl
|
helpUrl,
|
||||||
|
overrideTimeout
|
||||||
) {
|
) {
|
||||||
window.$gz.store.commit("logItem", "notify-warning: " + msg);
|
window.$gz.store.commit("logItem", "notify-warning: " + msg);
|
||||||
msg = msg.substring(0, 600);
|
msg = msg.substring(0, 600);
|
||||||
vm.$root.$gznotify({
|
vm.$root.$gznotify({
|
||||||
message: msg,
|
message: msg,
|
||||||
type: "warning",
|
type: "warning",
|
||||||
timeout: CalculateDelay(msg),
|
timeout: overrideTimeout ?? CalculateDelay(msg),
|
||||||
helpUrl: helpUrl
|
helpUrl: helpUrl
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -627,6 +627,27 @@ export default {
|
|||||||
})();
|
})();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Show toast if out of date to non customer users, perpetual only ensured by server
|
||||||
|
if (
|
||||||
|
!vm.$store.getters.isCustomerUser &&
|
||||||
|
!vm.$store.state.globalSettings.showUpdateAvailable
|
||||||
|
) {
|
||||||
|
window.$gz.eventBus.$emit(
|
||||||
|
"notify-warning",
|
||||||
|
`AyaNova update available ${vm.$store.state.globalSettings.latestVersion}`,
|
||||||
|
vm.$store.state.globalSettings.changeLogUrl,
|
||||||
|
10000
|
||||||
|
);
|
||||||
|
// (async function() {
|
||||||
|
// await window.$gz.dialog.displayLTModalNotificationMessage(
|
||||||
|
// "MaintenanceExpiredNote",
|
||||||
|
// "MaintenanceExpired",
|
||||||
|
// "error",
|
||||||
|
// "https://ayanova.com/docs/adm-license/#maintenance-expired-message"
|
||||||
|
// );
|
||||||
|
// })();
|
||||||
|
}
|
||||||
|
|
||||||
const toPath = vm.$route.params.topath; //set in app.vue::mounted
|
const toPath = vm.$route.params.topath; //set in app.vue::mounted
|
||||||
if (toPath != undefined) {
|
if (toPath != undefined) {
|
||||||
//open the url indicated
|
//open the url indicated
|
||||||
|
|||||||
Reference in New Issue
Block a user