This commit is contained in:
@@ -50,15 +50,6 @@ CURRENT TODOs
|
|||||||
@@@@@@@@@@@ ROADMAP STAGE 2:
|
@@@@@@@@@@@ ROADMAP STAGE 2:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
todo: Remove all separators in menu, they create a false dichotomy and invite unnecessary questions
|
|
||||||
|
|
||||||
todo: Remove About AyaNova from any non main form but keep on main forms
|
|
||||||
- In other words should not show in widget edit etc
|
|
||||||
|
|
||||||
todo: Remove LOGOUT from any non main form but keep on main forms
|
|
||||||
- In other words should not show in widget edit etc
|
|
||||||
|
|
||||||
todo: Plugins option for every menu of every object with a type attached to it
|
todo: Plugins option for every menu of every object with a type attached to it
|
||||||
- but maybe named something else, not Plugins but similar icon
|
- but maybe named something else, not Plugins but similar icon
|
||||||
- put it just above Customize and make it added from the central gzmenu code so can control what appears there
|
- put it just above Customize and make it added from the central gzmenu code so can control what appears there
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ export default {
|
|||||||
vm.appBar.menuItems = ctx.menuItems;
|
vm.appBar.menuItems = ctx.menuItems;
|
||||||
//DIVIDER
|
//DIVIDER
|
||||||
//Insert the devider between context and global items
|
//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
|
//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
|
//CUSTOMIZE
|
||||||
//set custom fields and link to translation text editor
|
//set custom fields and link to translation text editor
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
isCoreBizObject &&
|
||||||
ctx.formData &&
|
ctx.formData &&
|
||||||
ctx.formData.formCustomTemplateKey != undefined &&
|
ctx.formData.formCustomTemplateKey != undefined &&
|
||||||
window.$gz.role.hasRole([
|
window.$gz.role.hasRole([
|
||||||
@@ -103,7 +115,7 @@ export default {
|
|||||||
//add customize menu item
|
//add customize menu item
|
||||||
//DIVIDER
|
//DIVIDER
|
||||||
//Insert the devider between context and global items
|
//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
|
//customize
|
||||||
vm.appBar.menuItems.push({
|
vm.appBar.menuItems.push({
|
||||||
title: window.$gz.translation.get("Customize"),
|
title: window.$gz.translation.get("Customize"),
|
||||||
@@ -122,7 +134,7 @@ export default {
|
|||||||
//global menu items
|
//global menu items
|
||||||
|
|
||||||
//divider
|
//divider
|
||||||
vm.appBar.menuItems.push({ divider: true, inset: false });
|
//vm.appBar.menuItems.push({ divider: true, inset: false });
|
||||||
|
|
||||||
//SEARCH
|
//SEARCH
|
||||||
//all forms except the search form
|
//all forms except the search form
|
||||||
@@ -145,7 +157,7 @@ export default {
|
|||||||
});
|
});
|
||||||
|
|
||||||
//ABOUT
|
//ABOUT
|
||||||
if (ctx.helpUrl != "form-ay-about") {
|
if (!isCoreBizObject && !ctx.helpUrl != "form-ay-about") {
|
||||||
vm.appBar.menuItems.push({
|
vm.appBar.menuItems.push({
|
||||||
title: window.$gz.translation.get("HelpAboutAyaNova"),
|
title: window.$gz.translation.get("HelpAboutAyaNova"),
|
||||||
icon: "fa-info-circle",
|
icon: "fa-info-circle",
|
||||||
@@ -155,11 +167,13 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//LOGOUT
|
//LOGOUT
|
||||||
vm.appBar.menuItems.push({
|
if (!isCoreBizObject) {
|
||||||
title: window.$gz.translation.get("Logout"),
|
vm.appBar.menuItems.push({
|
||||||
icon: "fa-sign-out-alt",
|
title: window.$gz.translation.get("Logout"),
|
||||||
key: "app:logout"
|
icon: "fa-sign-out-alt",
|
||||||
});
|
key: "app:logout"
|
||||||
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
///////////////////////////////
|
///////////////////////////////
|
||||||
// CHANGE HANDLER
|
// CHANGE HANDLER
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ export default {
|
|||||||
.then(window.$gz.api.status)
|
.then(window.$gz.api.status)
|
||||||
.then(window.$gz.api.json)
|
.then(window.$gz.api.json)
|
||||||
// eslint-disable-next-line
|
// eslint-disable-next-line
|
||||||
.then((response) => {
|
.then(response => {
|
||||||
window.$gz._.forEach(
|
window.$gz._.forEach(
|
||||||
response.data,
|
response.data,
|
||||||
function commitFetchedLTItemToStore(item) {
|
function commitFetchedLTItemToStore(item) {
|
||||||
@@ -103,7 +103,6 @@ export default {
|
|||||||
"MenuHelp",
|
"MenuHelp",
|
||||||
"More",
|
"More",
|
||||||
"Logout",
|
"Logout",
|
||||||
//form required options
|
|
||||||
"Active",
|
"Active",
|
||||||
"New",
|
"New",
|
||||||
"Cancel",
|
"Cancel",
|
||||||
|
|||||||
Reference in New Issue
Block a user