diff --git a/ayanova/src/api/gzdialog.js b/ayanova/src/api/gzdialog.js
index 7f269de1..5e5d556a 100644
--- a/ayanova/src/api/gzdialog.js
+++ b/ayanova/src/api/gzdialog.js
@@ -45,25 +45,25 @@ TODO:
///////////
//ERROR
window.$gz.eventBus.$on("notify-error", function handleNotifyWarn(msg) {
- vm.$root.$gznotify(msg, { type: "error", timeout: 7000 });
+ vm.$root.$gznotify({ message: msg, type: "error", timeout: 2000 });
});
///////////
//WARNING
window.$gz.eventBus.$on("notify-warning", function handleNotifyWarn(msg) {
- vm.$root.$gznotify(msg, { type: "warning", timeout: 7000 });
+ vm.$root.$gznotify({ message: msg, type: "warning", timeout: 2000 });
});
///////////
//INFO
window.$gz.eventBus.$on("notify-info", function handleNotifyWarn(msg) {
- vm.$root.$gznotify(msg, { type: "info", timeout: 5000 });
+ vm.$root.$gznotify({ message: msg, type: "info", timeout: 2000 });
});
///////////
//SUCCESS
window.$gz.eventBus.$on("notify-success", function handleNotifyWarn(msg) {
- vm.$root.$gznotify(msg, { type: "info", timeout: 3000 });
+ vm.$root.$gznotify({ message: msg, type: "success", timeout: 2000 });
});
},
/////////////////////////////////////
diff --git a/ayanova/src/api/initialize.js b/ayanova/src/api/initialize.js
index 03e5f61d..b8ca600b 100644
--- a/ayanova/src/api/initialize.js
+++ b/ayanova/src/api/initialize.js
@@ -148,7 +148,7 @@ export default function initialize() {
//for now just show the message
window.$gz.eventBus.$emit(
"notify-info",
- "Time zone offset for your account is set to " +
+ "1111 Time zone offset for your account is set to " +
res.data.timeZoneOffset +
" which doesn't match the local timezone offset of " +
localOffset
@@ -156,15 +156,20 @@ export default function initialize() {
window.$gz.eventBus.$emit(
"notify-warning",
- "this is a warning test"
+ "2222 this is a warning test"
);
window.$gz.eventBus.$emit(
"notify-error",
- "this is an error test"
+ "3333 this is an error test"
);
window.$gz.eventBus.$emit(
"notify-success",
- "this is a success test"
+ "4444 this is a success test"
+ );
+
+ window.$gz.eventBus.$emit(
+ "notify-info",
+ "5555 this is the FINAL (info) test"
);
}
diff --git a/ayanova/src/components/gznotify.vue b/ayanova/src/components/gznotify.vue
index 88f3c309..ccb82377 100644
--- a/ayanova/src/components/gznotify.vue
+++ b/ayanova/src/components/gznotify.vue
@@ -1,11 +1,7 @@
-
-
- {{ message }}
+
+
+ {{ currentNotification.message }}
fa-times-circle
@@ -14,37 +10,114 @@