From bf609bde30b7b4fbe7832c45fba055efec9c938d Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 6 Apr 2020 00:26:23 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 10 ---------- ayanova/src/views/ops-server-state.vue | 3 ++- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 7fcacc68..415d90a7 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -50,16 +50,6 @@ CURRENT TODOs @@@@@@@@@@@ ROADMAP STAGE 2: -todo: ops-dashboard for ops user with the basic server state controls and status of the server - server state control is a toggle, open or opsonly - -todo: SERVER STATE - - check server status on attempt to login for first time or whatever, it should give a prominent warning if the server is unavailable due to closed for maint or whatever rather than just timing out. - - Also it allows login which is good but it should restrict the UI if it's a fresh login to a closed server rather than just failing to do certain things - - Maybe overall testing is needed with a closed server just to suss out what to do in the UI for that, we want ops people and admins in there but not other biz users if it's locked out - - Maybe an alternative page when it's locked out instead of the normal view of each view saying server down for maintenance or something - - NEED LOCKOUT PAGE WITH SERVER STATUS - - for ops they can do some things, for non-ops they can just view and see latest info, goes home when server is back online todo: login form, if trial or dev then needs to display list of sample users to login as and it fills in the login and password diff --git a/ayanova/src/views/ops-server-state.vue b/ayanova/src/views/ops-server-state.vue index 15d25c73..63618306 100644 --- a/ayanova/src/views/ops-server-state.vue +++ b/ayanova/src/views/ops-server-state.vue @@ -56,7 +56,7 @@ export default { initForm(vm) .then(() => { vm.rights = window.$gz.role.getRights(window.$gz.type.ServerState); - vm.formState.ready = true; + // vm.formState.ready = true; window.$gz.eventBus.$on("menu-click", clickHandler); vm.getDataFromApi(); }) @@ -144,6 +144,7 @@ export default { window.$gz.api .get(url) .then(res => { + vm.formState.ready = true; if (res.error != undefined) { vm.formState.serverError = res.error; window.$gz.form.setErrorBoxErrors(vm);