This commit is contained in:
2019-04-16 23:36:36 +00:00
parent 0a835c2d0b
commit 7bcf255e9d
2 changed files with 13 additions and 3 deletions

View File

@@ -166,7 +166,10 @@ export default {
//main menu, put in the standard items that always show
that.appBar.mainMenuItems = [
{ 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 (ctx.mainMenuItems) {
@@ -179,7 +182,14 @@ export default {
this.$gzevent.$on("menu-click", function(key) {
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);
}
}
});
},

View File

@@ -183,7 +183,7 @@ export default {
{ title: "DUPLICATE", icon: "clone", key: "duplicate" },
{ title: "SAVE", icon: "save", key: "save" },
{ 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);