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

View File

@@ -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;