diff --git a/ayanova/src/App.vue b/ayanova/src/App.vue
index a141d42b..d602ac95 100644
--- a/ayanova/src/App.vue
+++ b/ayanova/src/App.vue
@@ -26,14 +26,6 @@
fa-search
-
@@ -41,10 +33,38 @@
-
+
+
+
+
+
+ {{ "fa-" + item.icon }}
+
+
+ {{ item.title }}
+
+
@@ -79,6 +99,29 @@ export default {
return {
drawer: null,
items: [
+ { header: "Today" },
+ {
+ avatar: "https://cdn.vuetifyjs.com/images/lists/1.jpg",
+ title: "Brunch this weekend?",
+ subtitle:
+ "Ali Connors — I'll be in your neighborhood doing errands this weekend. Do you want to hang out?"
+ },
+ { divider: true, inset: true },
+ {
+ avatar: "https://cdn.vuetifyjs.com/images/lists/2.jpg",
+ title: 'Summer BBQ 4',
+ subtitle:
+ "to Alex, Scott, Jennifer — Wish I could come, but I'm out of town this weekend."
+ },
+ { divider: true, inset: true },
+ {
+ avatar: "https://cdn.vuetifyjs.com/images/lists/3.jpg",
+ title: "Oui oui",
+ subtitle:
+ "Sandra Adams — Do you have Paris recommendations? Have you ever been?"
+ }
+ ],
+ contextItems: [
{ title: "Click Me" },
{ title: "Click Me" },
{ title: "Click Me" },
@@ -87,6 +130,11 @@ export default {
};
},
mounted() {
+ //subscribe to context menu changes
+ this.$gzevent.$on("context-menu-change", function(ctx) {
+ alert("CLICK " + ctx);
+ });
+ //redirect to login if not authenticated
if (!this.$store.state.authenticated) {
this.$router.replace({ name: "login" });
}
@@ -97,6 +145,9 @@ export default {
},
logout() {
this.$store.state.authenticated = false;
+ },
+ stubClick() {
+ alert("CLICK");
}
},
computed: {
diff --git a/ayanova/src/api/eventbus.js b/ayanova/src/api/eventbus.js
new file mode 100644
index 00000000..968c96ba
--- /dev/null
+++ b/ayanova/src/api/eventbus.js
@@ -0,0 +1,2 @@
+import Vue from "vue";
+export default new Vue();
diff --git a/ayanova/src/main.js b/ayanova/src/main.js
index 4cdea227..9162655a 100644
--- a/ayanova/src/main.js
+++ b/ayanova/src/main.js
@@ -13,6 +13,7 @@ import "nprogress/nprogress.css";
import dayjs from "dayjs";
import lodash from "./libs/lodash.min.js";
//my libs
+import gzeventbus from "./api/eventbus";
import gzutil from "./api/gzutil";
import locale from "./api/locale";
import gzapi from "./api/gzapi";
@@ -25,6 +26,7 @@ import gzdateandtimepicker from "./components/gzdateandtimepicker.vue";
// LIBS AND GLOBAL ITEMS
// (https://medium.com/js-dojo/use-any-javascript-library-with-vue-js-3f7e2a4974a8)
//
+Object.defineProperty(Vue.prototype, "$gzevent", { value: gzeventbus });
Object.defineProperty(Vue.prototype, "$gzutil", { value: gzutil });
Object.defineProperty(Vue.prototype, "$dayjs", { value: dayjs });
Object.defineProperty(Vue.prototype, "$_", { value: lodash });
diff --git a/ayanova/src/views/inventory-widget-edit.vue b/ayanova/src/views/inventory-widget-edit.vue
index 8e16a8df..d0e77844 100644
--- a/ayanova/src/views/inventory-widget-edit.vue
+++ b/ayanova/src/views/inventory-widget-edit.vue
@@ -117,7 +117,7 @@
{{ this.$gzlocale.get("Delete")}}
- DUPLICATE?
+ TEST BUTTON
{{ this.$gzlocale.get("Save")}}
@@ -245,7 +245,13 @@ export default {
//check rights
//do the delete
alert("STUB: DELETE");
- } //end of submit()
+ }, //end of remove()
+ stubTestClick() {
+ this.$gzevent.$emit(
+ "context-menu-change",
+ "HI FROM inventory-widget-edit.vue"
+ );
+ }
}
};