From dc4a04472bc9bc481b48d122e5dbd768ecd5f112 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 26 Nov 2018 18:16:34 +0000 Subject: [PATCH] --- app/ayanova/src/App.vue | 12 +++++++++--- app/ayanova/src/api/apiutil.js | 5 +++++ app/ayanova/src/store.js | 4 ++++ 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/app/ayanova/src/App.vue b/app/ayanova/src/App.vue index a819c572..89513851 100644 --- a/app/ayanova/src/App.vue +++ b/app/ayanova/src/App.vue @@ -22,9 +22,12 @@ - - fa-bell - + + + fa-question-circle + + Tooltip + @@ -84,6 +87,9 @@ export default { }, version() { return aboutInfo.version; + }, + helpUrl() { + return this.$store.state.helpUrl; } }, props: { diff --git a/app/ayanova/src/api/apiutil.js b/app/ayanova/src/api/apiutil.js index e079acad..e8e3f287 100644 --- a/app/ayanova/src/api/apiutil.js +++ b/app/ayanova/src/api/apiutil.js @@ -83,12 +83,17 @@ export default { window.location.port == "8080" ) { store.commit("setAPIURL", "http://localhost:7575/api/v8.0/"); + store.commit("setHelpURL", "http://localhost:7575/docs/"); store.commit( "logItem", "apiutil::APIUrl -> setting to dev. mode: " + store.state.apiUrl ); } else { //production location //:/ + store.commit( + "setHelpURL", + window.location.protocol + "//" + window.location.host + "/docs/" + ); store.commit( "setAPIURL", window.location.protocol + "//" + window.location.host + "/api/v8.0/" diff --git a/app/ayanova/src/store.js b/app/ayanova/src/store.js index 1b52ee1a..958c6b50 100644 --- a/app/ayanova/src/store.js +++ b/app/ayanova/src/store.js @@ -12,6 +12,7 @@ export default new Vuex.Store({ state: { authenticated: false, apiUrl: "", + helpUrl: "", apiToken: "-", userId: 0, roles: 0, @@ -45,6 +46,9 @@ export default new Vuex.Store({ setAPIURL(state, data) { state.apiUrl = data; }, + setHelpURL(state, data) { + state.helpUrl = data; + }, logItem(state, msg) { msg = Date.now() + "|" + msg; state.logArray.push(msg);