From 50259e9a711b8092ec637f978c9343aaa31f600c Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 19 Nov 2018 20:43:34 +0000 Subject: [PATCH] --- app/ayanova/src/main.js | 23 +++++++++++++++++++++++ devdocs/todo.txt | 5 ----- 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/app/ayanova/src/main.js b/app/ayanova/src/main.js index 6648ffe6..19d13705 100644 --- a/app/ayanova/src/main.js +++ b/app/ayanova/src/main.js @@ -12,6 +12,29 @@ Vue.config.productionTip = false; Vue.config.errorHandler = errorHandler.handleVueError; window.onerror = errorHandler.handleGeneralError; +//Loading indicator + +router.beforeResolve((to, from, next) => { + // If this isn't an initial page load. + from; + if (to.name) { + // Start the route progress bar. + //NProgress.start() + // eslint-disable-next-line + console.log("---===LOADING===---"); + } + next(); +}); + +router.afterEach((to, from) => { + // Complete the animation of the route progress bar. + //NProgress.done() + to; + from; + // eslint-disable-next-line + console.log("---===FINISHED LOADING===---"); +}); + new Vue({ router, store, diff --git a/devdocs/todo.txt b/devdocs/todo.txt index 0fa3afda..4a9051b1 100644 --- a/devdocs/todo.txt +++ b/devdocs/todo.txt @@ -6,11 +6,6 @@ Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOiIxNTQxNTE5NTA5IiwiZXhwIjoi ## IMMEDIATE ITEMS - - Clean up error log view so it displays correctly with copyable text box and scrollbars of some kind - - started on it but it's narrow, this keeps happening, what to do, look into layout?? - - Also make the title part of the textbox as I think it supports in v-textarea - - - Loading indicator for xhr stuff - The thin line one I saw is pretty skookum - Dummy form with all RAVEN required input controls on it for testing