This commit is contained in:
2019-11-07 23:39:03 +00:00
parent 69f8ededb8
commit db0039eec3
3 changed files with 114 additions and 36 deletions

View File

@@ -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 });
});
},
/////////////////////////////////////

View File

@@ -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"
);
}