This commit is contained in:
2019-07-19 19:10:34 +00:00
parent 1bc7084d3b
commit 1714c64467

View File

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