This commit is contained in:
@@ -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 });
|
||||
});
|
||||
|
||||
///////////
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user