This commit is contained in:
@@ -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"),
|
||||
|
||||
@@ -95,6 +95,7 @@ export default {
|
||||
"History",
|
||||
"Statistics",
|
||||
"Backup",
|
||||
"ServerState",
|
||||
"ServerJobs",
|
||||
"ServerLog",
|
||||
"ServerMetrics",
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user