This commit is contained in:
@@ -165,18 +165,28 @@ export default {
|
||||
} else {
|
||||
//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:index.html"
|
||||
title: this.$gzlocale.get("Logout"),
|
||||
icon: "sign-out-alt",
|
||||
key: "app:logout"
|
||||
}
|
||||
];
|
||||
//If other items specified add them above the standard ones
|
||||
var hasSpecialHelpLink = false;
|
||||
if (ctx.mainMenuItems) {
|
||||
that.appBar.mainMenuItems = ctx.mainMenuItems.concat(
|
||||
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"
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user