This commit is contained in:
2019-04-23 22:08:27 +00:00
parent f54a4d874a
commit 412f5273c8
4 changed files with 36 additions and 25 deletions

View File

@@ -104,31 +104,10 @@ export default {
},
created() {
//////////////////////////////////
// MENU EVENT HANDLERS
// WIRE UP MENU EVENT HANDLERS
//
//
var vm = this;
this.$gzevent.$on("menu-change", function handleMenuChange(ctx) {
vm.$gzmenu.handleMenuChange(vm, ctx);
});
this.$gzevent.$on("menu-replace-item", function handleReplaceMenuItem(
newItem
) {
vm.$gzmenu.handleReplaceMenuItem(vm, newItem);
});
this.$gzevent.$on("menu-disable-item", function handleDisableMenuItem(key) {
vm.$gzmenu.handleDisableMenuItem(vm, key, true);
});
this.$gzevent.$on("menu-enable-item", function handleDisableMenuItem(key) {
vm.$gzmenu.handleDisableMenuItem(vm, key, false);
});
this.$gzevent.$on("menu-click", function handleMenuClick(menuitem) {
vm.$gzmenu.handleAppClick(vm, menuitem);
});
this.$gzmenu.wireUpAppEventHandlers(this);
},
beforeDestroy() {
this.$gzevent.$off();