This commit is contained in:
2019-04-17 00:01:35 +00:00
parent 6b828b47a5
commit 635f8aa94d
3 changed files with 30 additions and 7 deletions

View File

@@ -165,18 +165,28 @@ export default {
} else { } else {
//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: "Help", title: this.$gzlocale.get("Logout"),
key: "app:help:index.html" icon: "sign-out-alt",
key: "app:logout"
} }
]; ];
//If other items specified add them above the standard ones //If other items specified add them above the standard ones
var hasSpecialHelpLink = false;
if (ctx.mainMenuItems) { if (ctx.mainMenuItems) {
that.appBar.mainMenuItems = ctx.mainMenuItems.concat( that.appBar.mainMenuItems = ctx.mainMenuItems.concat(
that.appBar.mainMenuItems that.appBar.mainMenuItems
); );
} }
//Now see if there is a help item or not and add it if not`
if (!hasSpecialHelpLink) {
that.appBar.mainMenuItems.push({
title: this.$gzlocale.get("MenuHelp"),
icon: "question-circle",
key: "app:help:index.html"
});
}
} }
}); });

View File

@@ -52,6 +52,7 @@ export default {
"Administration", "Administration",
"Operations", "Operations",
"HelpAboutAyaNova", "HelpAboutAyaNova",
"MenuHelp",
"Logout", "Logout",
//form required options //form required options
"Active", "Active",

View File

@@ -180,10 +180,22 @@ export default {
icon: "fa-splotch", icon: "fa-splotch",
title: this.$gzlocale.get("Widget"), title: this.$gzlocale.get("Widget"),
contextMenuItems: [ contextMenuItems: [
{ title: "DUPLICATE", icon: "clone", key: "duplicate" }, {
{ title: "SAVE", icon: "save", key: "save" }, title: this.$gzlocale.get("Duplicate"),
{ title: "DELETE", icon: "trash-alt", key: "delete" }, icon: "clone",
{ title: "HELP", key: "app:help:intro/#searching" } key: "duplicate"
},
{ title: this.$gzlocale.get("Save"), icon: "save", key: "save" },
{
title: this.$gzlocale.get("Delete"),
icon: "trash-alt",
key: "delete"
},
{
title: this.$gzlocale.get("MenuHelp"),
icon: "question-circle",
key: "app:help:intro/#searching"
}
] ]
}); });
this.$gzevent.$on("menu-click", clickHandler); this.$gzevent.$on("menu-click", clickHandler);