From 4d92e0da20ee8e415ab65e38f0b7c37a6b7bc6fb Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Sun, 5 Apr 2020 23:40:56 +0000 Subject: [PATCH] --- ayanova/src/api/initialize.js | 8 ++++++++ ayanova/src/api/translation.js | 1 + ayanova/src/router.js | 11 +++++++++-- 3 files changed, 18 insertions(+), 2 deletions(-) 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",