case 4518, also added override of timeout to all notify variants
This commit is contained in:
@@ -27,7 +27,8 @@ export default {
|
||||
//ERROR
|
||||
window.$gz.eventBus.$on("notify-error", function handleNotifyWarn(
|
||||
msg,
|
||||
helpUrl
|
||||
helpUrl,
|
||||
overrideTimeout
|
||||
) {
|
||||
//log full message
|
||||
window.$gz.store.commit("logItem", "notify-error: " + msg);
|
||||
@@ -36,7 +37,7 @@ export default {
|
||||
vm.$root.$gznotify({
|
||||
message: msg,
|
||||
type: "error",
|
||||
timeout: CalculateDelay(msg),
|
||||
timeout: overrideTimeout ?? CalculateDelay(msg),
|
||||
helpUrl: helpUrl
|
||||
});
|
||||
});
|
||||
@@ -62,14 +63,15 @@ export default {
|
||||
//INFO
|
||||
window.$gz.eventBus.$on("notify-info", function handleNotifyInfo(
|
||||
msg,
|
||||
helpUrl
|
||||
helpUrl,
|
||||
overrideTimeout
|
||||
) {
|
||||
window.$gz.store.commit("logItem", "notify-info: " + msg);
|
||||
msg = msg.substring(0, 600);
|
||||
vm.$root.$gznotify({
|
||||
message: msg,
|
||||
type: "info",
|
||||
timeout: CalculateDelay(msg),
|
||||
timeout: overrideTimeout ?? CalculateDelay(msg),
|
||||
helpUrl: helpUrl
|
||||
});
|
||||
});
|
||||
@@ -78,13 +80,15 @@ export default {
|
||||
//SUCCESS
|
||||
window.$gz.eventBus.$on("notify-success", function handleNotifySuccess(
|
||||
msg,
|
||||
helpUrl
|
||||
helpUrl,
|
||||
overrideTimeout
|
||||
) {
|
||||
vm.$root.$gznotify({
|
||||
message: msg,
|
||||
type: "success",
|
||||
timeout: CalculateDelay(msg),
|
||||
helpUrl: helpUrl
|
||||
timeout: overrideTimeout ?? CalculateDelay(msg),
|
||||
helpUrl: helpUrl,
|
||||
overrideTimeout
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user