diff --git a/ayanova/src/api/initialize.js b/ayanova/src/api/initialize.js index 78e020f6..b9c71449 100644 --- a/ayanova/src/api/initialize.js +++ b/ayanova/src/api/initialize.js @@ -624,6 +624,14 @@ export default function initialize() { window.$gz.store.commit("setHomePage", "/ops-BACKUP"); } + // SERVER STATE + sub.push({ + title: t("ServerState"), + icon: "fa-door-open", + route: "/ops-server-state", + key: key++ + }); + // JOBS sub.push({ title: t("ServerJobs"), diff --git a/ayanova/src/api/translation.js b/ayanova/src/api/translation.js index 1d5dc1b2..9e1532eb 100644 --- a/ayanova/src/api/translation.js +++ b/ayanova/src/api/translation.js @@ -95,6 +95,7 @@ export default { "History", "Statistics", "Backup", + "ServerState", "ServerJobs", "ServerLog", "ServerMetrics", diff --git a/ayanova/src/router.js b/ayanova/src/router.js index e97dc273..4a70af92 100644 --- a/ayanova/src/router.js +++ b/ayanova/src/router.js @@ -34,9 +34,9 @@ const scrollBehavior = function(to, from, savedPosition) { return false; } - return new Promise(resolve => { + return new Promise((resolve) => { // check if any matched route config has meta that requires scrolling to top - if (to.matched.some(m => m.meta.scrollToTop)) { + if (to.matched.some((m) => m.meta.scrollToTop)) { // coords will be used if no selector is provided, // or if the selector didn't match any element. position.x = 0; @@ -340,6 +340,13 @@ export default new Router({ import(/* webpackChunkName: "ops" */ "./views/ops-backup.vue") }, + { + path: "/ops-server-state", + name: "ops-server-state", + component: () => + import(/* webpackChunkName: "ops" */ "./views/ops-server-state.vue") + }, + { path: "/ops-jobs", name: "ops-jobs",