From fbad297525812445e8102ffd50d30e3933fd33a3 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 16 Nov 2018 22:21:55 +0000 Subject: [PATCH] --- app/ayanova/src/views/About.vue | 8 +++++--- app/ayanova/src/views/log.vue | 6 ++++-- devdocs/todo.txt | 3 +-- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/app/ayanova/src/views/About.vue b/app/ayanova/src/views/About.vue index d8778bc0..c11ae1d3 100644 --- a/app/ayanova/src/views/About.vue +++ b/app/ayanova/src/views/About.vue @@ -14,7 +14,7 @@ fa-glasses - + {{ lt("ClientApp")}} @@ -113,7 +113,7 @@ export default { clientInfo: {} }; }, - beforeMount() { + beforeRouteEnter(to, from, next) { lt.fetch([ "HelpAboutAyaNova", "ClientApp", @@ -129,7 +129,9 @@ export default { "LicenseExpiration", "SupportedUntil", "LicensedOptions" - ]); + ]).then(() => { + next(); + }); }, mounted() { this.clientInfo.version = aboutInfo.version; diff --git a/app/ayanova/src/views/log.vue b/app/ayanova/src/views/log.vue index 4728872b..db7e4143 100644 --- a/app/ayanova/src/views/log.vue +++ b/app/ayanova/src/views/log.vue @@ -15,8 +15,10 @@ export default { data() { return {}; }, - async Created() { - await lt.fetch(["Log"]); + beforeRouteEnter(to, from, next) { + lt.fetch(["Log"]).then(() => { + next(); + }); }, mounted() {}, methods: { diff --git a/devdocs/todo.txt b/devdocs/todo.txt index 9fe2ae31..94caa6d1 100644 --- a/devdocs/todo.txt +++ b/devdocs/todo.txt @@ -7,8 +7,7 @@ Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOiIxNTQxNTE5NTA5IiwiZXhwIjoi - Clean up error log view so it displays correctly with copyable text box and scrollbars of some kind - - - Centralize the lt function, find out how to move it into the top so can just call it from anywhere + - pre-fetch: noticed it's not pausing long enough to get teh fetched text at times (log view) - !!This will be important to every form loading data so need to get it right here!! - This seems to be best done in the router if I want to prefetch before the component lifecycle starts