This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user