This commit is contained in:
@@ -46,7 +46,7 @@ export default {
|
||||
vm.appBar.menuItems = ctx.menuItems;
|
||||
//DIVIDER
|
||||
//Insert the devider between context and global items
|
||||
vm.appBar.menuItems.push({ divider: true, inset: false });
|
||||
// vm.appBar.menuItems.push({ divider: true, inset: false });
|
||||
}
|
||||
|
||||
//WIKI, ATTACHMENTS, RECORD HISTORY
|
||||
@@ -88,10 +88,22 @@ export default {
|
||||
});
|
||||
}
|
||||
|
||||
//PLUGINS - for anything with a type but not necessarily an ID
|
||||
if (formAyaType != 0) {
|
||||
vm.appBar.menuItems.push({
|
||||
title: window.$gz.translation.get("More"),
|
||||
icon: "fa-puzzle-piece",
|
||||
key: "app:plugin",
|
||||
data: formAyaType,
|
||||
recordId: formRecordId
|
||||
});
|
||||
}
|
||||
|
||||
//CUSTOMIZE
|
||||
//set custom fields and link to translation text editor
|
||||
|
||||
if (
|
||||
isCoreBizObject &&
|
||||
ctx.formData &&
|
||||
ctx.formData.formCustomTemplateKey != undefined &&
|
||||
window.$gz.role.hasRole([
|
||||
@@ -103,7 +115,7 @@ export default {
|
||||
//add customize menu item
|
||||
//DIVIDER
|
||||
//Insert the devider between context and global items
|
||||
vm.appBar.menuItems.push({ divider: true, inset: false });
|
||||
// vm.appBar.menuItems.push({ divider: true, inset: false });
|
||||
//customize
|
||||
vm.appBar.menuItems.push({
|
||||
title: window.$gz.translation.get("Customize"),
|
||||
@@ -122,7 +134,7 @@ export default {
|
||||
//global menu items
|
||||
|
||||
//divider
|
||||
vm.appBar.menuItems.push({ divider: true, inset: false });
|
||||
//vm.appBar.menuItems.push({ divider: true, inset: false });
|
||||
|
||||
//SEARCH
|
||||
//all forms except the search form
|
||||
@@ -145,7 +157,7 @@ export default {
|
||||
});
|
||||
|
||||
//ABOUT
|
||||
if (ctx.helpUrl != "form-ay-about") {
|
||||
if (!isCoreBizObject && !ctx.helpUrl != "form-ay-about") {
|
||||
vm.appBar.menuItems.push({
|
||||
title: window.$gz.translation.get("HelpAboutAyaNova"),
|
||||
icon: "fa-info-circle",
|
||||
@@ -155,11 +167,13 @@ export default {
|
||||
}
|
||||
|
||||
//LOGOUT
|
||||
vm.appBar.menuItems.push({
|
||||
title: window.$gz.translation.get("Logout"),
|
||||
icon: "fa-sign-out-alt",
|
||||
key: "app:logout"
|
||||
});
|
||||
if (!isCoreBizObject) {
|
||||
vm.appBar.menuItems.push({
|
||||
title: window.$gz.translation.get("Logout"),
|
||||
icon: "fa-sign-out-alt",
|
||||
key: "app:logout"
|
||||
});
|
||||
}
|
||||
},
|
||||
///////////////////////////////
|
||||
// CHANGE HANDLER
|
||||
|
||||
Reference in New Issue
Block a user