diff --git a/ayanova/src/api/gzdialog.js b/ayanova/src/api/gzdialog.js index 511e8a2a..6e52b39d 100644 --- a/ayanova/src/api/gzdialog.js +++ b/ayanova/src/api/gzdialog.js @@ -19,7 +19,7 @@ export default { //ERROR vm.$gzevent.$on("notify-error", function handleNotifyWarn(msg) { vm.$dialog.notify.info(msg, { - position: "top-right", + position: "bottom-right", icon: "fa-exclamation-triangle", timeout: 8000 }); @@ -29,7 +29,7 @@ export default { //WARNING vm.$gzevent.$on("notify-warning", function handleNotifyWarn(msg) { vm.$dialog.notify.warning(msg, { - position: "top-right", + position: "bottom-right", icon: "fa-exclamation", timeout: 7000 }); @@ -39,9 +39,9 @@ export default { //INFO vm.$gzevent.$on("notify-info", function handleNotifyWarn(msg) { vm.$dialog.notify.info(msg, { - position: "top-right", + position: "bottom-right", icon: "fa-info-circle", - timeout: 6000 + timeout: 3000 }); }); @@ -49,9 +49,9 @@ export default { //SUCCESS vm.$gzevent.$on("notify-success", function handleNotifyWarn(msg) { vm.$dialog.notify.success(msg, { - position: "top-right", + position: "bottom-right", icon: "fa-check-circle ", - timeout: 5000 + timeout: 3000 }); }); }, diff --git a/ayanova/src/views/inventory-widget-edit.vue b/ayanova/src/views/inventory-widget-edit.vue index dcbedede..6158c87f 100644 --- a/ayanova/src/views/inventory-widget-edit.vue +++ b/ayanova/src/views/inventory-widget-edit.vue @@ -188,11 +188,13 @@ function clickHandler(menuItem) { var selectedItem = reportList[0].value; m.vm.$gzdialog .getReportChoice(m.vm, reportList, selectedItem) - .then(result => { - m.vm.$gzevent.$emit( - "notify-success", - FORM_KEY + "::report click, selected is: [" + result + "]" - ); + .then(res => { + if (res) { + m.vm.$gzevent.$emit( + "notify-success", + FORM_KEY + "::report click, selected is: [" + res + "]" + ); + } }); break;