This commit is contained in:
2020-06-07 18:13:56 +00:00
parent ed0de5bfb0
commit 983c24a726
17 changed files with 67 additions and 23 deletions

View File

@@ -7,10 +7,6 @@ WIFI change 5g channel to 52,56,60 and 2g channel to 8
todo: readonly not enough, sb disabled as well, check widget and anywhere readonly is set and examine to see if that's a good change
todo: if widget is readonly customize still shows
it's read only (but looks enabled)
should it even show as a menu option? (probably not)
todo: PickList, hide open button if disabled and show an active button so user can still click, that's not restricted when readonly
todo: Administration - License

View File

@@ -15,7 +15,7 @@ export default {
//corebizobject
Contract: 10,
TrialSeeder: 11,
Metrics: 12,
ServerMetrics: 12,
Translation: 13,
UserOptions: 14,
//corebizobject
@@ -81,7 +81,11 @@ export default {
WorkOrderTemplate: 45,
//corebizobject
WorkOrderTemplateItem: 46,
GlobalOps: 47
GlobalOps: 47,
BizMetrics: 48,
Backup: 49,
Notification: 50,
NotificationSubscription: 51
};
/**
*

View File

@@ -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"),

View File

@@ -23,7 +23,9 @@ export default {
icon: "fa-cogs",
title: this.$ay.t("AdministrationGlobalSettings"),
helpUrl: "form-adm-global-settings",
hideSearch: true
formData: {
ayaType: window.$gz.type.Global
}
});
},
created() {

View File

@@ -15,7 +15,9 @@ export default {
icon: "fa-ticket-alt",
title: this.$ay.t("HelpLicense"),
helpUrl: "form-adm-license",
hideSearch: true
formData: {
ayaType: window.$gz.type.License
}
});
}
};

View File

@@ -15,7 +15,9 @@ export default {
icon: "fa-chart-line",
title: this.$ay.t("Statistics"),
helpUrl: "form-adm-statistics",
hideSearch: true
formData: {
ayaType: window.$gz.type.BizMetrics
}
});
}
};

View File

@@ -19,7 +19,7 @@
:readonly="formState.readOnly"
:label="$ay.t('FormFieldVisible')"
:ref="item.key"
:disabled="item.stockRequired"
:disabled="item.stockRequired || formState.readOnly"
@change="visibleChanged(item)"
:data-cy="!!$ay.dev ? item.key + 'Visible' : false"
></v-checkbox>
@@ -27,13 +27,14 @@
v-model="item.required"
:readonly="formState.readOnly"
:label="$ay.t('FormFieldEntryRequired')"
:disabled="requiredDisabled(item)"
:disabled="requiredDisabled(item) || formState.readOnly"
@change="requiredChanged(item)"
></v-checkbox>
<v-select
v-if="item.custom"
v-model="item.type"
:readonly="formState.readOnly"
:disabled="formState.readOnly"
:items="selectLists.uiFieldDataTypes"
item-text="name"
item-value="id"

View File

@@ -15,7 +15,9 @@ export default {
icon: "fa-bullhorn",
title: this.$ay.t("NotifySubscriptionList"),
helpUrl: "form-home-notify-subscriptions",
hideSearch: true
formData: {
ayaType: window.$gz.type.NotificationSubscription
}
});
}
};

View File

@@ -256,7 +256,9 @@ function generateMenu(vm) {
icon: "fa-key",
title: vm.$ay.t("SetLoginPassword"),
helpUrl: "form-home-password",
hideSearch: true,
formData: {
ayaType: window.$gz.type.UserOptions
},
menuItems: []
};

View File

@@ -382,7 +382,6 @@ function generateMenu(vm) {
icon: "fa-user-cog",
title: vm.$ay.t("UserSettings"),
helpUrl: "form-home-user-settings",
hideSearch: true,
formData: {
ayaType: window.$gz.type.UserOptions
},

View File

@@ -380,7 +380,9 @@ function generateMenu(vm) {
icon: "fa-file-archive",
title: vm.$ay.t("Backup"),
helpUrl: "form-ops-backup",
hideSearch: true,
formData: {
ayaType: window.$gz.type.Backup
},
formData: {},
menuItems: []
};

View File

@@ -182,7 +182,9 @@ function generateMenu(vm) {
icon: "fa-robot",
title: vm.$ay.t("ServerJobs"),
helpUrl: "form-ops-jobs",
hideSearch: true,
formData: {
ayaType: window.$gz.type.ServerJob
},
menuItems: [
{
title: vm.$ay.t("Copy"),

View File

@@ -152,7 +152,9 @@ function generateMenu(vm) {
icon: "fa-history",
title: vm.$ay.t("ServerLog"),
helpUrl: "form-ops-log",
hideSearch: true,
formData: {
ayaType: window.$gz.type.LogFile
},
menuItems: [
{
title: vm.$ay.t("Copy"),

View File

@@ -463,7 +463,9 @@ function generateMenu(vm) {
icon: "fa-file-medical-alt",
title: vm.$ay.t("ServerMetrics"),
helpUrl: "form-ops-metrics",
hideSearch: true,
formData: {
ayaType: window.$gz.type.ServerMetrics
},
menuItems: [
// {
// title: "DEV_TEST_COLLECT",

View File

@@ -15,7 +15,9 @@ export default {
icon: "fa-bullhorn",
title: this.$ay.t("NotificationSettings"),
helpUrl: "form-ops-notification-settings",
hideSearch: true
formData: {
ayaType: window.$gz.type.NotificationSubscription
}
});
}
};

View File

@@ -89,7 +89,9 @@ function generateMenu(vm) {
icon: "fa-binoculars",
title: vm.$ay.t("ServerProfiler"),
helpUrl: "form-ops-profile",
hideSearch: true,
formData: {
ayaType: window.$gz.type.ServerMetrics
},
menuItems: [
// {
// title: vm.$ay.t("Copy"),

View File

@@ -257,7 +257,9 @@ function generateMenu(vm) {
icon: "fa-door-open",
title: vm.$ay.t("ServerState"),
helpUrl: "form-ops-server-state",
hideSearch: true,
formData: {
ayaType: window.$gz.type.ServerState
},
formData: {
// ayaType: window.$gz.type.UserOptions
},