This commit is contained in:
2019-04-23 19:32:21 +00:00
parent b25a5834bf
commit 3cc5cd53a4
4 changed files with 121 additions and 83 deletions

View File

@@ -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() {