This commit is contained in:
2019-07-19 18:57:06 +00:00
parent 702e632dde
commit 1bc7084d3b
18 changed files with 54 additions and 46 deletions

View File

@@ -38,7 +38,7 @@
v-if="item.surface"
:key="item.key"
:disabled="item.disabled"
@click="$gzevent.$emit('menu-click', item)"
@click="window.$gz.eventbus.$emit('menu-click', item)"
>
<v-icon :color="item.color ? item.color : ''">
{{ "fa-" + item.icon }}
@@ -66,7 +66,7 @@
v-else
:key="item.key"
:disabled="item.disabled"
@click="$gzevent.$emit('menu-click', item)"
@click="window.$gz.eventbus.$emit('menu-click', item)"
v-bind:class="{ 'hidden-sm-and-up': item.surface }"
>
<v-list-tile-action>
@@ -136,12 +136,12 @@ export default {
// ON GZEVENTBUS
//
//
this.$gzmenu.wireUpEventHandlers(this);
window.$gz.menu.wireUpEventHandlers(this);
this.$gzdialog.wireUpEventHandlers(this);
},
beforeDestroy() {
//UNWIRE ALL EVENT HANDLERS FROM GZEVENTBUS
this.$gzevent.$off();
this.window.$gz.eventbus.$off();
},
mounted() {
//redirect to login if not authenticated