This commit is contained in:
@@ -10,6 +10,26 @@ export default {
|
||||
// Deal with a menu change request
|
||||
// called from App.vue
|
||||
handleMenuChange(vm, ctx) {
|
||||
let UTILITY_TYPES = [
|
||||
window.$gz.type.NoType,
|
||||
window.$gz.type.Global,
|
||||
window.$gz.type.NoType,
|
||||
window.$gz.type.ServerState,
|
||||
window.$gz.type.License,
|
||||
window.$gz.type.LogFile,
|
||||
window.$gz.type.ServerJob,
|
||||
window.$gz.type.TrialSeeder,
|
||||
window.$gz.type.ServerMetrics,
|
||||
window.$gz.type.UserOptions,
|
||||
window.$gz.type.FormCustom,
|
||||
window.$gz.type.DataListView,
|
||||
window.$gz.type.GlobalOps,
|
||||
window.$gz.type.BizMetrics,
|
||||
window.$gz.type.Backup,
|
||||
window.$gz.type.Notification,
|
||||
window.$gz.type.NotificationSubscription
|
||||
];
|
||||
|
||||
vm.appBar.isMain = ctx.isMain;
|
||||
vm.appBar.icon = ctx.icon;
|
||||
vm.appBar.title = ctx.title;
|
||||
@@ -89,7 +109,7 @@ export default {
|
||||
}
|
||||
|
||||
//PLUGINS - for anything with a type but not necessarily an ID
|
||||
if (formAyaType != 0) {
|
||||
if (!UTILITY_TYPES.includes(formAyaType)) {
|
||||
vm.appBar.menuItems.push({
|
||||
title: window.$gz.translation.get("More"),
|
||||
icon: "fa-puzzle-piece",
|
||||
@@ -138,7 +158,7 @@ export default {
|
||||
|
||||
//SEARCH
|
||||
//all forms except the search form
|
||||
if (!ctx.hideSearch) {
|
||||
if (!ctx.hideSearch && !UTILITY_TYPES.includes(formAyaType)) {
|
||||
//For all forms but not on the search form itself; if this is necessary for others then make a nosearch or something flag controlled by incoming ctx but if not then this should suffice
|
||||
vm.appBar.menuItems.push({
|
||||
title: window.$gz.translation.get("Search"),
|
||||
|
||||
Reference in New Issue
Block a user