This commit is contained in:
@@ -107,19 +107,26 @@ export default {
|
||||
// MENU EVENT HANDLERS
|
||||
//
|
||||
//
|
||||
var that = this;
|
||||
var vm = this;
|
||||
this.$gzevent.$on("menu-change", function handleMenuChange(ctx) {
|
||||
that.$gzmenu.handleMenuChange(that, ctx);
|
||||
vm.$gzmenu.handleMenuChange(vm, ctx);
|
||||
});
|
||||
|
||||
this.$gzevent.$on("menu-replace-item", function handleReplaceMenuItem(
|
||||
newItem
|
||||
) {
|
||||
that.$gzmenu.handleReplaceMenuItem(that, newItem);
|
||||
vm.$gzmenu.handleReplaceMenuItem(vm, newItem);
|
||||
});
|
||||
|
||||
this.$gzevent.$on("menu-disable-item", function handleDisableMenuItem(
|
||||
key,
|
||||
disabled
|
||||
) {
|
||||
vm.$gzmenu.handleDisableMenuItem(vm, key, disabled);
|
||||
});
|
||||
|
||||
this.$gzevent.$on("menu-click", function handleMenuClick(menuitem) {
|
||||
that.$gzmenu.handleAppClick(that, menuitem);
|
||||
vm.$gzmenu.handleAppClick(vm, menuitem);
|
||||
});
|
||||
},
|
||||
beforeDestroy() {
|
||||
|
||||
Reference in New Issue
Block a user