This commit is contained in:
2019-11-08 18:51:36 +00:00
parent c168a00e1a
commit ef219df726
3 changed files with 11 additions and 87 deletions

View File

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

View File

@@ -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