This commit is contained in:
@@ -17,7 +17,7 @@ export default {
|
||||
|
||||
///////////
|
||||
//ERROR
|
||||
vm.$gzevent.$on("notify-error", function handleNotifyWarn(msg) {
|
||||
window.$gz.eventbus.$on("notify-error", function handleNotifyWarn(msg) {
|
||||
vm.$dialog.notify.info(msg, {
|
||||
position: "bottom-right",
|
||||
icon: "fa-exclamation-triangle",
|
||||
@@ -27,7 +27,7 @@ export default {
|
||||
|
||||
///////////
|
||||
//WARNING
|
||||
vm.$gzevent.$on("notify-warning", function handleNotifyWarn(msg) {
|
||||
window.$gz.eventbus.$on("notify-warning", function handleNotifyWarn(msg) {
|
||||
vm.$dialog.notify.warning(msg, {
|
||||
position: "bottom-right",
|
||||
icon: "fa-exclamation",
|
||||
@@ -37,7 +37,7 @@ export default {
|
||||
|
||||
///////////
|
||||
//INFO
|
||||
vm.$gzevent.$on("notify-info", function handleNotifyWarn(msg) {
|
||||
window.$gz.eventbus.$on("notify-info", function handleNotifyWarn(msg) {
|
||||
vm.$dialog.notify.info(msg, {
|
||||
position: "bottom-right",
|
||||
icon: "fa-info-circle",
|
||||
@@ -47,7 +47,7 @@ export default {
|
||||
|
||||
///////////
|
||||
//SUCCESS
|
||||
vm.$gzevent.$on("notify-success", function handleNotifyWarn(msg) {
|
||||
window.$gz.eventbus.$on("notify-success", function handleNotifyWarn(msg) {
|
||||
vm.$dialog.notify.success(msg, {
|
||||
position: "bottom-right",
|
||||
icon: "fa-check-circle ",
|
||||
|
||||
@@ -155,7 +155,7 @@ export default {
|
||||
vm.$router.push({ name: item.data });
|
||||
break;
|
||||
default:
|
||||
vm.$gzevent.$emit(
|
||||
window.$gz.eventbus.$emit(
|
||||
"notify-warning",
|
||||
"gzmenu:handleAppClick - unrecognized command [" +
|
||||
menuItem.key +
|
||||
@@ -189,25 +189,29 @@ export default {
|
||||
//
|
||||
wireUpEventHandlers(vm) {
|
||||
var self = this;
|
||||
vm.$gzevent.$on("menu-change", function handleMenuChange(ctx) {
|
||||
window.$gz.eventbus.$on("menu-change", function handleMenuChange(ctx) {
|
||||
self.handleMenuChange(vm, ctx);
|
||||
});
|
||||
|
||||
vm.$gzevent.$on("menu-replace-item", function handleReplaceMenuItem(
|
||||
window.$gz.eventbus.$on("menu-replace-item", function handleReplaceMenuItem(
|
||||
newItem
|
||||
) {
|
||||
self.handleReplaceMenuItem(vm, newItem);
|
||||
});
|
||||
|
||||
vm.$gzevent.$on("menu-disable-item", function handleDisableMenuItem(key) {
|
||||
window.$gz.eventbus.$on("menu-disable-item", function handleDisableMenuItem(
|
||||
key
|
||||
) {
|
||||
self.handleDisableMenuItem(vm, key, true);
|
||||
});
|
||||
|
||||
vm.$gzevent.$on("menu-enable-item", function handleDisableMenuItem(key) {
|
||||
window.$gz.eventbus.$on("menu-enable-item", function handleDisableMenuItem(
|
||||
key
|
||||
) {
|
||||
self.handleDisableMenuItem(vm, key, false);
|
||||
});
|
||||
|
||||
vm.$gzevent.$on("menu-click", function handleMenuClick(menuitem) {
|
||||
window.$gz.eventbus.$on("menu-click", function handleMenuClick(menuitem) {
|
||||
self.handleAppClick(vm, menuitem);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user