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