From 7202800ecedc6bbd3a4a4b7632e0ca3d3bb9b45b Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 27 May 2019 18:59:39 +0000 Subject: [PATCH] --- ayanova/src/api/aboutinfo.js | 6 +----- ayanova/src/views/About.vue | 33 +++++++++++++++++++++------------ ayanova/src/views/login.vue | 7 ++++++- ayanova/src/views/notfound.vue | 4 +++- 4 files changed, 31 insertions(+), 19 deletions(-) diff --git a/ayanova/src/api/aboutinfo.js b/ayanova/src/api/aboutinfo.js index 0abb9a51..b532f3a6 100644 --- a/ayanova/src/api/aboutinfo.js +++ b/ayanova/src/api/aboutinfo.js @@ -1,10 +1,7 @@ -import store from "../store"; - export default { version: "8.0.0-alpha.5", copyright: "Copyright © 1999-2019, Ground Zero Tech-Works Inc. All Rights Reserved", - userName: store.state.userName, browser: { platform: window.navigator.platform, userAgent: window.navigator.userAgent, @@ -19,6 +16,5 @@ export default { height: window.screen.height, devicePixelRatio: window.devicePixelRatio, pixelDepth: window.screen.pixelDepth - }, - clientLog: store.state.logArray + } }; diff --git a/ayanova/src/views/About.vue b/ayanova/src/views/About.vue index 74d263b5..3d3a9f4b 100644 --- a/ayanova/src/views/About.vue +++ b/ayanova/src/views/About.vue @@ -22,7 +22,9 @@
{{ this.$gzlocale.get("User") }}: - {{ clientInfo.userName }} + {{ clientInfo.userName }}{{ this.$store.state.userName }}
@@ -67,9 +69,9 @@ {{ this.$gzlocale.get("RegisteredUser") }}: - - {{ serverInfo.license.license.licensedTo }} - + {{ + serverInfo.license.license.licensedTo + }}
{{ this.$gzlocale.get("LicenseExpiration") }}: - - {{ serverInfo.license.license.licenseExpiration }} - + {{ + serverInfo.license.license.licenseExpiration + }}
{{ this.$gzlocale.get("SupportedUntil") }}: - - {{ serverInfo.license.license.maintenanceExpiration }} - + {{ + serverInfo.license.license.maintenanceExpiration + }}
@@ -137,7 +139,9 @@ function clickHandler(menuItem) { var text = element.innerText || element.textContent; var logText = ""; - this.$_.forEach(aboutInfo.clientLog, function appendLogItem(value) { + this.$_.forEach(m.vm.$store.state.logArray, function appendLogItem( + value + ) { logText += value + "\n"; }); @@ -208,7 +212,6 @@ export default { }); }, created() { - this.clientInfo = aboutInfo; this.$gzapi .get("ServerInfo") .then(response => { @@ -221,6 +224,12 @@ export default { beforeDestroy() { // this.$gzevent.$off("menu-click", clickHandler); }, + mounted() { + this.clientInfo = {}; + this.clientInfo = aboutInfo; + //eslint-disable-next-line + //console.log("MOUNTED"); + }, data() { return { serverInfo: { license: { license: {} } }, diff --git a/ayanova/src/views/login.vue b/ayanova/src/views/login.vue index 628b6c76..e5df6cc3 100644 --- a/ayanova/src/views/login.vue +++ b/ayanova/src/views/login.vue @@ -2,7 +2,12 @@ - + diff --git a/ayanova/src/views/notfound.vue b/ayanova/src/views/notfound.vue index 356ee333..247aa5a2 100644 --- a/ayanova/src/views/notfound.vue +++ b/ayanova/src/views/notfound.vue @@ -4,7 +4,9 @@
fa-dragon -
{{"404 - " + this.$gzlocale.get("ErrorAPI2010")}}
+
+ {{ "404 - " + this.$gzlocale.get("ErrorAPI2010") }} +