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