This commit is contained in:
2019-06-12 23:39:15 +00:00
parent dce45378da
commit 1a54b242e5
2 changed files with 13 additions and 11 deletions

View File

@@ -19,7 +19,7 @@ export default {
//ERROR //ERROR
vm.$gzevent.$on("notify-error", function handleNotifyWarn(msg) { vm.$gzevent.$on("notify-error", function handleNotifyWarn(msg) {
vm.$dialog.notify.info(msg, { vm.$dialog.notify.info(msg, {
position: "top-right", position: "bottom-right",
icon: "fa-exclamation-triangle", icon: "fa-exclamation-triangle",
timeout: 8000 timeout: 8000
}); });
@@ -29,7 +29,7 @@ export default {
//WARNING //WARNING
vm.$gzevent.$on("notify-warning", function handleNotifyWarn(msg) { vm.$gzevent.$on("notify-warning", function handleNotifyWarn(msg) {
vm.$dialog.notify.warning(msg, { vm.$dialog.notify.warning(msg, {
position: "top-right", position: "bottom-right",
icon: "fa-exclamation", icon: "fa-exclamation",
timeout: 7000 timeout: 7000
}); });
@@ -39,9 +39,9 @@ export default {
//INFO //INFO
vm.$gzevent.$on("notify-info", function handleNotifyWarn(msg) { vm.$gzevent.$on("notify-info", function handleNotifyWarn(msg) {
vm.$dialog.notify.info(msg, { vm.$dialog.notify.info(msg, {
position: "top-right", position: "bottom-right",
icon: "fa-info-circle", icon: "fa-info-circle",
timeout: 6000 timeout: 3000
}); });
}); });
@@ -49,9 +49,9 @@ export default {
//SUCCESS //SUCCESS
vm.$gzevent.$on("notify-success", function handleNotifyWarn(msg) { vm.$gzevent.$on("notify-success", function handleNotifyWarn(msg) {
vm.$dialog.notify.success(msg, { vm.$dialog.notify.success(msg, {
position: "top-right", position: "bottom-right",
icon: "fa-check-circle ", icon: "fa-check-circle ",
timeout: 5000 timeout: 3000
}); });
}); });
}, },

View File

@@ -188,11 +188,13 @@ function clickHandler(menuItem) {
var selectedItem = reportList[0].value; var selectedItem = reportList[0].value;
m.vm.$gzdialog m.vm.$gzdialog
.getReportChoice(m.vm, reportList, selectedItem) .getReportChoice(m.vm, reportList, selectedItem)
.then(result => { .then(res => {
m.vm.$gzevent.$emit( if (res) {
"notify-success", m.vm.$gzevent.$emit(
FORM_KEY + "::report click, selected is: [" + result + "]" "notify-success",
); FORM_KEY + "::report click, selected is: [" + res + "]"
);
}
}); });
break; break;