This commit is contained in:
@@ -166,7 +166,10 @@ export default {
|
|||||||
//main menu, put in the standard items that always show
|
//main menu, put in the standard items that always show
|
||||||
that.appBar.mainMenuItems = [
|
that.appBar.mainMenuItems = [
|
||||||
{ title: "Log off", icon: "sign-out-alt", key: "app:logout" },
|
{ title: "Log off", icon: "sign-out-alt", key: "app:logout" },
|
||||||
{ title: "Help", key: "app:help" }
|
{
|
||||||
|
title: "Help",
|
||||||
|
key: "app:help:index.html"
|
||||||
|
}
|
||||||
];
|
];
|
||||||
//If other items specified add them above the standard ones
|
//If other items specified add them above the standard ones
|
||||||
if (ctx.mainMenuItems) {
|
if (ctx.mainMenuItems) {
|
||||||
@@ -179,7 +182,14 @@ export default {
|
|||||||
|
|
||||||
this.$gzevent.$on("menu-click", function(key) {
|
this.$gzevent.$on("menu-click", function(key) {
|
||||||
if (key.startsWith("app:")) {
|
if (key.startsWith("app:")) {
|
||||||
alert("App.vue::menu click: " + key);
|
if (key.startsWith("app:help:")) {
|
||||||
|
var helpurl =
|
||||||
|
"https://www.ayanova.com/AyaNova7webHelp/" +
|
||||||
|
key.replace("app:help:", "");
|
||||||
|
window.open(helpurl, "_blank");
|
||||||
|
} else {
|
||||||
|
alert("STUB: App.vue::menu click: " + key);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -183,7 +183,7 @@ export default {
|
|||||||
{ title: "DUPLICATE", icon: "clone", key: "duplicate" },
|
{ title: "DUPLICATE", icon: "clone", key: "duplicate" },
|
||||||
{ title: "SAVE", icon: "save", key: "save" },
|
{ title: "SAVE", icon: "save", key: "save" },
|
||||||
{ title: "DELETE", icon: "trash-alt", key: "delete" },
|
{ title: "DELETE", icon: "trash-alt", key: "delete" },
|
||||||
{ title: "HELP", key: "app:help:inventory-widget-edit" }
|
{ title: "HELP", key: "app:help:clients_entry_screen.htm" }
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
this.$gzevent.$on("menu-click", clickHandler);
|
this.$gzevent.$on("menu-click", clickHandler);
|
||||||
|
|||||||
Reference in New Issue
Block a user