This commit is contained in:
2020-08-12 21:55:37 +00:00
parent a82d0b8e67
commit 661df1fa30
3 changed files with 18 additions and 9 deletions

View File

@@ -738,6 +738,14 @@ function initNavPanel() {
key: key++ key: key++
}); });
// OPS VIEW SERVER CONFIGURATION
sub.push({
title: "ServerState",
icon: "fa-info-circle",
route: "/ops-view-configuration",
key: key++
});
// ** OPERATIONS (TOP) // ** OPERATIONS (TOP)
addNavItem("Operations", "fa-server", undefined, sub, key++, "operations"); addNavItem("Operations", "fa-server", undefined, sub, key++, "operations");
} }

View File

@@ -139,6 +139,7 @@ export default {
"ServerMetrics", "ServerMetrics",
"ServerProfiler", "ServerProfiler",
"NotificationSettings", "NotificationSettings",
"ViewServerConfiguration",
"HelpAboutAyaNova", "HelpAboutAyaNova",
"MenuHelp", "MenuHelp",
"More", "More",

View File

@@ -67,7 +67,7 @@ export default {
async created() { async created() {
let vm = this; let vm = this;
try { try {
await initForm(vm); // await initForm(vm);
vm.formState.ready = true; vm.formState.ready = true;
window.$gz.eventBus.$on("menu-click", clickHandler); window.$gz.eventBus.$on("menu-click", clickHandler);
@@ -166,16 +166,16 @@ function clickHandler(menuItem) {
// //
// //
async function initForm(vm) { async function initForm(vm) {
await fetchTranslatedText(vm); //await fetchTranslatedText(vm);
} }
////////////////////////////////////////////////////////// // //////////////////////////////////////////////////////////
// // //
// Ensures UI translated text is available // // Ensures UI translated text is available
// // //
async function fetchTranslatedText(vm) { // async function fetchTranslatedText(vm) {
await window.$gz.translation.cacheTranslations(["ViewServerConfiguration"]); // await window.$gz.translation.cacheTranslations(["ViewServerConfiguration"]);
} // }
/* /*
AYANOVA_DEFAULT_TRANSLATION = ServerBootConfig.AYANOVA_DEFAULT_TRANSLATION, AYANOVA_DEFAULT_TRANSLATION = ServerBootConfig.AYANOVA_DEFAULT_TRANSLATION,