This commit is contained in:
2021-07-15 18:21:33 +00:00
parent 18b9899a4b
commit 86a0c1681f
2 changed files with 39 additions and 46 deletions

View File

@@ -112,30 +112,13 @@ export default {
//populate the context portion of the menu so handle accordingly
if (ctx.menuItems) {
vm.appBar.menuItems = ctx.menuItems;
//DIVIDER
//Insert the devider between context and global items
// vm.appBar.menuItems.push({ divider: true, inset: false });
}
//WIKI, ATTACHMENTS, RECORD HISTORY
//STANDARD BIZ OBJECT OPTIONS
//NOTE: This applies equally to all core business object types that are basically real world and have an id and a type (all are wikiable, attachable and reviewable)
//Not utility type objects like datalist etc
//there will be few exceptions so they will be coded in later if needed but assume anything with an id and a type
if (isCoreBizObject) {
// vm.appBar.menuItems.push({
// title: "Attachments"),
// icon: "fa - paperclip",
// key: "app:attachments",
// data: { ayaType: formAyaType, recordId: formRecordId }
// });
// vm.appBar.menuItems.push({
// title: "WikiPage"),
// icon: "fa - feather",
// key: "app:wiki",
// data: { ayaType: formAyaType, recordId: formRecordId }
// });
if (isCoreBizObject && !ctx.hideCoreBizStandardOptions) {
//"Review" was follow up type of schedule marker
//basically it's now a "Reminder" type of object but it's own thing with separate collection
@@ -168,15 +151,13 @@ export default {
ctx.formData &&
ctx.formData.formCustomTemplateKey != undefined &&
window.$gz.role.hasRole([
window.$gz.role.AUTHORIZATION_ROLES.BizAdminRestricted,
window.$gz.role.AUTHORIZATION_ROLES.BizAdmin,
window.$gz.role.AUTHORIZATION_ROLES.BizAdminRestricted
])
) {
//NOTE: BizAdmin can edit, BizAdminRestricted can read only
//add customize menu item
//DIVIDER
//Insert the devider between context and global items
// vm.appBar.menuItems.push({ divider: true, inset: false });
//customize
vm.appBar.menuItems.push({
title: "Customize",