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