From ef219df7269c0d303c3de79e98dcd66a4da97d19 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 8 Nov 2019 18:51:36 +0000 Subject: [PATCH] --- ayanova/src/api/gzdialog.js | 6 +-- ayanova/src/api/initialize.js | 20 +------- ayanova/src/components/gznotify.vue | 72 +++-------------------------- 3 files changed, 11 insertions(+), 87 deletions(-) diff --git a/ayanova/src/api/gzdialog.js b/ayanova/src/api/gzdialog.js index 5e5d556a..87047fcf 100644 --- a/ayanova/src/api/gzdialog.js +++ b/ayanova/src/api/gzdialog.js @@ -45,19 +45,19 @@ TODO: /////////// //ERROR window.$gz.eventBus.$on("notify-error", function handleNotifyWarn(msg) { - vm.$root.$gznotify({ message: msg, type: "error", timeout: 2000 }); + vm.$root.$gznotify({ message: msg, type: "error", timeout: 5000 }); }); /////////// //WARNING window.$gz.eventBus.$on("notify-warning", function handleNotifyWarn(msg) { - vm.$root.$gznotify({ message: msg, type: "warning", timeout: 2000 }); + vm.$root.$gznotify({ message: msg, type: "warning", timeout: 4000 }); }); /////////// //INFO window.$gz.eventBus.$on("notify-info", function handleNotifyWarn(msg) { - vm.$root.$gznotify({ message: msg, type: "info", timeout: 2000 }); + vm.$root.$gznotify({ message: msg, type: "info", timeout: 3000 }); }); /////////// diff --git a/ayanova/src/api/initialize.js b/ayanova/src/api/initialize.js index b8ca600b..b3c3451f 100644 --- a/ayanova/src/api/initialize.js +++ b/ayanova/src/api/initialize.js @@ -148,29 +148,11 @@ export default function initialize() { //for now just show the message window.$gz.eventBus.$emit( "notify-info", - "1111 Time zone offset for your account is set to " + + "Time zone offset for your account is set to " + res.data.timeZoneOffset + " which doesn't match the local timezone offset of " + localOffset ); - - window.$gz.eventBus.$emit( - "notify-warning", - "2222 this is a warning test" - ); - window.$gz.eventBus.$emit( - "notify-error", - "3333 this is an error test" - ); - window.$gz.eventBus.$emit( - "notify-success", - "4444 this is a success test" - ); - - window.$gz.eventBus.$emit( - "notify-info", - "5555 this is the FINAL (info) test" - ); } //Store offset in locale data diff --git a/ayanova/src/components/gznotify.vue b/ayanova/src/components/gznotify.vue index 43954653..2c255a5b 100644 --- a/ayanova/src/components/gznotify.vue +++ b/ayanova/src/components/gznotify.vue @@ -10,9 +10,7 @@