This commit is contained in:
@@ -6,9 +6,6 @@ WIFI change 5g channel to 52,56,60 and 2g channel to 8
|
||||
recheck before doing as it seems to vary, maybe someone else's is auto switching
|
||||
|
||||
|
||||
todo: metrics page not localized "storage" etc
|
||||
todo: metrics tables have no indexes?
|
||||
but they need to fetch by date range so...not sure about that one
|
||||
|
||||
todo: remove search option from metrics / logs etc as it implies you can search those things and you can't
|
||||
|
||||
|
||||
@@ -138,7 +138,7 @@ export default {
|
||||
|
||||
//SEARCH
|
||||
//all forms except the search form
|
||||
if (ctx.icon != "fa-search") {
|
||||
if (!ctx.hideSearch) {
|
||||
//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"),
|
||||
|
||||
@@ -22,7 +22,8 @@ export default {
|
||||
isMain: true,
|
||||
icon: "fa-cogs",
|
||||
title: this.$ay.t("AdministrationGlobalSettings"),
|
||||
helpUrl: "form-adm-global-settings"
|
||||
helpUrl: "form-adm-global-settings",
|
||||
hideSearch: true
|
||||
});
|
||||
},
|
||||
created() {
|
||||
|
||||
@@ -14,7 +14,8 @@ export default {
|
||||
isMain: true,
|
||||
icon: "fa-history",
|
||||
title: this.$ay.t("History"),
|
||||
helpUrl: "form-adm-history"
|
||||
helpUrl: "form-adm-history",
|
||||
hideSearch: true
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
@@ -14,7 +14,8 @@ export default {
|
||||
isMain: true,
|
||||
icon: "fa-ticket-alt",
|
||||
title: this.$ay.t("HelpLicense"),
|
||||
helpUrl: "form-adm-license"
|
||||
helpUrl: "form-adm-license",
|
||||
hideSearch: true
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
@@ -14,7 +14,8 @@ export default {
|
||||
isMain: true,
|
||||
icon: "fa-chart-line",
|
||||
title: this.$ay.t("Statistics"),
|
||||
helpUrl: "form-adm-statistics"
|
||||
helpUrl: "form-adm-statistics",
|
||||
hideSearch: true
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
@@ -14,7 +14,8 @@ export default {
|
||||
isMain: true,
|
||||
icon: "fa-bullhorn",
|
||||
title: this.$ay.t("NotifySubscriptionList"),
|
||||
helpUrl: "form-home-notify-subscriptions"
|
||||
helpUrl: "form-home-notify-subscriptions",
|
||||
hideSearch: true
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
@@ -256,6 +256,7 @@ function generateMenu(vm) {
|
||||
icon: "fa-key",
|
||||
title: vm.$ay.t("SetLoginPassword"),
|
||||
helpUrl: "form-home-password",
|
||||
hideSearch: true,
|
||||
menuItems: []
|
||||
};
|
||||
|
||||
|
||||
@@ -347,6 +347,7 @@ function generateMenu(vm) {
|
||||
icon: "fa-search",
|
||||
title: vm.$ay.t("Search"),
|
||||
helpUrl: "form-home-search",
|
||||
hideSearch: true,
|
||||
formData: {
|
||||
ayaType: window.$gz.type.UserOptions
|
||||
},
|
||||
|
||||
@@ -370,6 +370,7 @@ 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
|
||||
},
|
||||
|
||||
@@ -369,6 +369,7 @@ function generateMenu(vm) {
|
||||
icon: "fa-file-archive",
|
||||
title: vm.$ay.t("Backup"),
|
||||
helpUrl: "form-ops-backup",
|
||||
hideSearch: true,
|
||||
formData: {},
|
||||
menuItems: []
|
||||
};
|
||||
|
||||
@@ -180,6 +180,7 @@ function generateMenu(vm) {
|
||||
icon: "fa-robot",
|
||||
title: vm.$ay.t("ServerJobs"),
|
||||
helpUrl: "form-ops-jobs",
|
||||
hideSearch: true,
|
||||
menuItems: [
|
||||
{
|
||||
title: vm.$ay.t("Copy"),
|
||||
|
||||
@@ -152,6 +152,7 @@ function generateMenu(vm) {
|
||||
icon: "fa-history",
|
||||
title: vm.$ay.t("ServerLog"),
|
||||
helpUrl: "form-ops-log",
|
||||
hideSearch: true,
|
||||
menuItems: [
|
||||
{
|
||||
title: vm.$ay.t("Copy"),
|
||||
|
||||
@@ -328,7 +328,7 @@ export default {
|
||||
labels: window.$gz._.map(this.db.topTables, "name"),
|
||||
datasets: [
|
||||
{
|
||||
label: this.$ay.t("MetricTopTablesSize"),
|
||||
label: this.$ay.t("MetricTopTablesSize"),
|
||||
data: window.$gz._.map(this.db.topTables, "value"),
|
||||
backgroundColor: getPalette(
|
||||
this.db.topTables ? this.db.topTables.length : 3
|
||||
@@ -503,14 +503,15 @@ function generateMenu(vm) {
|
||||
icon: "fa-file-medical-alt",
|
||||
title: vm.$ay.t("ServerMetrics"),
|
||||
helpUrl: "form-ops-metrics",
|
||||
hideSearch: true,
|
||||
menuItems: [
|
||||
{
|
||||
title: vm.$ay.t("Copy"),
|
||||
icon: "fa-copy",
|
||||
surface: false,
|
||||
key: FORM_KEY + ":copylog",
|
||||
vm: vm
|
||||
}
|
||||
// {
|
||||
// title: vm.$ay.t("Copy"),
|
||||
// icon: "fa-copy",
|
||||
// surface: false,
|
||||
// key: FORM_KEY + ":copylog",
|
||||
// vm: vm
|
||||
// }
|
||||
]
|
||||
};
|
||||
|
||||
@@ -527,10 +528,10 @@ function clickHandler(menuItem) {
|
||||
let m = window.$gz.menu.parseMenuItem(menuItem);
|
||||
if (m.owner == FORM_KEY && !m.disabled) {
|
||||
switch (m.key) {
|
||||
case "copylog":
|
||||
//put the log info on the clipboard:
|
||||
window.$gz.util.copyToClipboard("SERVER LOG\n" + m.vm.log);
|
||||
break;
|
||||
// case "copylog":
|
||||
// //put the log info on the clipboard:
|
||||
// window.$gz.util.copyToClipboard("SERVER LOG\n" + m.vm.log);
|
||||
// break;
|
||||
default:
|
||||
window.$gz.eventBus.$emit(
|
||||
"notify-warning",
|
||||
|
||||
@@ -14,7 +14,8 @@ export default {
|
||||
isMain: true,
|
||||
icon: "fa-bullhorn",
|
||||
title: this.$ay.t("NotificationSettings"),
|
||||
helpUrl: "form-ops-notification-settings"
|
||||
helpUrl: "form-ops-notification-settings",
|
||||
hideSearch: true
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
@@ -89,6 +89,7 @@ function generateMenu(vm) {
|
||||
icon: "fa-binoculars",
|
||||
title: vm.$ay.t("ServerProfiler"),
|
||||
helpUrl: "form-ops-profile",
|
||||
hideSearch: true,
|
||||
menuItems: [
|
||||
// {
|
||||
// title: vm.$ay.t("Copy"),
|
||||
|
||||
@@ -254,6 +254,7 @@ function generateMenu(vm) {
|
||||
icon: "fa-door-open",
|
||||
title: vm.$ay.t("ServerState"),
|
||||
helpUrl: "form-ops-server-state",
|
||||
hideSearch: true,
|
||||
formData: {
|
||||
ayaType: window.$gz.type.UserOptions
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user