From f76a98090de650bb0a5a333545fbe712e26fa606 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 16 Apr 2019 22:52:12 +0000 Subject: [PATCH] --- ayanova/src/App.vue | 16 ++++------------ ayanova/src/views/inventory-widget-edit.vue | 13 ++++++++----- 2 files changed, 12 insertions(+), 17 deletions(-) diff --git a/ayanova/src/App.vue b/ayanova/src/App.vue index 09ba5908..a67b49af 100644 --- a/ayanova/src/App.vue +++ b/ayanova/src/App.vue @@ -58,7 +58,7 @@ --> @@ -106,7 +106,7 @@ export default { isMain: true, icon: "", title: "", - contextMenuItems: [], + contextItems: [], mainMenuItems: [] }, items: [ @@ -132,12 +132,7 @@ export default { "Sandra Adams — Do you have Paris recommendations? Have you ever been?" } ], - contextItems: [ - { title: "stub view log", icon: "glasses", key: "log" }, - { title: "Click Me 2", key: "2" }, - { title: "Click Me 3", key: "3" }, - { title: "Click Me 4", key: "4" } - ] + contextItems: [] }; }, created() { @@ -147,9 +142,7 @@ export default { that.appBar.isMain = ctx.isMain; that.appBar.icon = ctx.icon; that.appBar.title = ctx.title; - that.appBar.contextMenuItems = ctx.contextMenuItems - ? ctx.contextMenuItems - : []; + that.appBar.contextItems = ctx.contextItems ? ctx.contextItems : []; }); this.$gzevent.$on("context-click", function(key) { @@ -180,7 +173,6 @@ export default { navItems() { return this.$store.state.navItems; }, - copyright() { return aboutInfo.copyright; }, diff --git a/ayanova/src/views/inventory-widget-edit.vue b/ayanova/src/views/inventory-widget-edit.vue index d2a22424..b138aa31 100644 --- a/ayanova/src/views/inventory-widget-edit.vue +++ b/ayanova/src/views/inventory-widget-edit.vue @@ -176,7 +176,13 @@ export default { this.$gzevent.$emit("context-menu-change", { isMain: false, icon: "fa-splotch", - title: this.$gzlocale.get("Widget") + title: this.$gzlocale.get("Widget"), + contextItems: [ + { title: "stub view log", icon: "glasses", key: "log" }, + { title: "Click Me 2", key: "2" }, + { title: "Click Me 3", key: "3" }, + { title: "Click Me 4", key: "4" } + ] }); this.$gzevent.$on("context-click", clickHandler); this.getDataFromApi(); @@ -253,10 +259,7 @@ export default { alert("STUB: DELETE"); }, //end of remove() stubTestClick() { - this.$gzevent.$emit( - "context-menu-change", - "HI FROM inventory-widget-edit.vue" - ); + alert("stub test click"); } } };