From b3e4f7b8c66a87ccbc374ab2d5b3116adfab711a Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 6 Apr 2020 00:04:03 +0000 Subject: [PATCH] --- ayanova/src/router.js | 2 + ayanova/src/views/ops-server-state.vue | 302 +++++++++++++++++++++++-- 2 files changed, 282 insertions(+), 22 deletions(-) diff --git a/ayanova/src/router.js b/ayanova/src/router.js index 4a70af92..d7532de5 100644 --- a/ayanova/src/router.js +++ b/ayanova/src/router.js @@ -34,8 +34,10 @@ const scrollBehavior = function(to, from, savedPosition) { return false; } + // eslint-disable-next-line return new Promise((resolve) => { // check if any matched route config has meta that requires scrolling to top + // eslint-disable-next-line 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. diff --git a/ayanova/src/views/ops-server-state.vue b/ayanova/src/views/ops-server-state.vue index a98a93c9..8efa7d03 100644 --- a/ayanova/src/views/ops-server-state.vue +++ b/ayanova/src/views/ops-server-state.vue @@ -1,31 +1,289 @@