This commit is contained in:
@@ -153,7 +153,7 @@ export default {
|
||||
});
|
||||
|
||||
this.$gzevent.$on("context-click", function(key) {
|
||||
alert("context click: " + key);
|
||||
alert("App.vue::context click: " + key);
|
||||
});
|
||||
|
||||
//redirect to login if not authenticated
|
||||
|
||||
@@ -130,7 +130,9 @@
|
||||
|
||||
<script>
|
||||
/* xeslint-disable */
|
||||
|
||||
function clickHandler(key) {
|
||||
alert("inventory-widget-edit.vue::context click: " + key);
|
||||
}
|
||||
export default {
|
||||
beforeCreate() {
|
||||
//Cache all required lt keys
|
||||
@@ -176,8 +178,12 @@ export default {
|
||||
icon: "fa-splotch",
|
||||
title: this.$gzlocale.get("Widget")
|
||||
});
|
||||
this.$gzevent.$on("context-click", clickHandler);
|
||||
this.getDataFromApi();
|
||||
},
|
||||
beforeDestroy() {
|
||||
this.$gzevent.$off("context-click", clickHandler);
|
||||
},
|
||||
components: {},
|
||||
data() {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user