This commit is contained in:
@@ -624,6 +624,14 @@ export default function initialize() {
|
|||||||
window.$gz.store.commit("setHomePage", "/ops-BACKUP");
|
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
|
// JOBS
|
||||||
sub.push({
|
sub.push({
|
||||||
title: t("ServerJobs"),
|
title: t("ServerJobs"),
|
||||||
|
|||||||
@@ -95,6 +95,7 @@ export default {
|
|||||||
"History",
|
"History",
|
||||||
"Statistics",
|
"Statistics",
|
||||||
"Backup",
|
"Backup",
|
||||||
|
"ServerState",
|
||||||
"ServerJobs",
|
"ServerJobs",
|
||||||
"ServerLog",
|
"ServerLog",
|
||||||
"ServerMetrics",
|
"ServerMetrics",
|
||||||
|
|||||||
@@ -34,9 +34,9 @@ const scrollBehavior = function(to, from, savedPosition) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return new Promise(resolve => {
|
return new Promise((resolve) => {
|
||||||
// check if any matched route config has meta that requires scrolling to top
|
// 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,
|
// coords will be used if no selector is provided,
|
||||||
// or if the selector didn't match any element.
|
// or if the selector didn't match any element.
|
||||||
position.x = 0;
|
position.x = 0;
|
||||||
@@ -340,6 +340,13 @@ export default new Router({
|
|||||||
import(/* webpackChunkName: "ops" */ "./views/ops-backup.vue")
|
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",
|
path: "/ops-jobs",
|
||||||
name: "ops-jobs",
|
name: "ops-jobs",
|
||||||
|
|||||||
Reference in New Issue
Block a user