This commit is contained in:
@@ -22,9 +22,12 @@
|
|||||||
</v-toolbar-title>
|
</v-toolbar-title>
|
||||||
<v-text-field flat solo-inverted hide-details prepend-inner-icon="fa-search" label="Search"></v-text-field>
|
<v-text-field flat solo-inverted hide-details prepend-inner-icon="fa-search" label="Search"></v-text-field>
|
||||||
<v-spacer></v-spacer>
|
<v-spacer></v-spacer>
|
||||||
<v-btn icon>
|
<v-tooltip bottom>
|
||||||
<v-icon>fa-bell</v-icon>
|
<v-btn icon v-bind:href="helpUrl" target="blank;">
|
||||||
</v-btn>
|
<v-icon>fa-question-circle</v-icon>
|
||||||
|
</v-btn>
|
||||||
|
<span>Tooltip</span>
|
||||||
|
</v-tooltip>
|
||||||
</v-toolbar>
|
</v-toolbar>
|
||||||
<v-content>
|
<v-content>
|
||||||
<v-container fluid fill-height>
|
<v-container fluid fill-height>
|
||||||
@@ -84,6 +87,9 @@ export default {
|
|||||||
},
|
},
|
||||||
version() {
|
version() {
|
||||||
return aboutInfo.version;
|
return aboutInfo.version;
|
||||||
|
},
|
||||||
|
helpUrl() {
|
||||||
|
return this.$store.state.helpUrl;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
|
|||||||
@@ -83,12 +83,17 @@ export default {
|
|||||||
window.location.port == "8080"
|
window.location.port == "8080"
|
||||||
) {
|
) {
|
||||||
store.commit("setAPIURL", "http://localhost:7575/api/v8.0/");
|
store.commit("setAPIURL", "http://localhost:7575/api/v8.0/");
|
||||||
|
store.commit("setHelpURL", "http://localhost:7575/docs/");
|
||||||
store.commit(
|
store.commit(
|
||||||
"logItem",
|
"logItem",
|
||||||
"apiutil::APIUrl -> setting to dev. mode: " + store.state.apiUrl
|
"apiutil::APIUrl -> setting to dev. mode: " + store.state.apiUrl
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
//production location <protocol>//<hostname>:<port>/
|
//production location <protocol>//<hostname>:<port>/
|
||||||
|
store.commit(
|
||||||
|
"setHelpURL",
|
||||||
|
window.location.protocol + "//" + window.location.host + "/docs/"
|
||||||
|
);
|
||||||
store.commit(
|
store.commit(
|
||||||
"setAPIURL",
|
"setAPIURL",
|
||||||
window.location.protocol + "//" + window.location.host + "/api/v8.0/"
|
window.location.protocol + "//" + window.location.host + "/api/v8.0/"
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ export default new Vuex.Store({
|
|||||||
state: {
|
state: {
|
||||||
authenticated: false,
|
authenticated: false,
|
||||||
apiUrl: "",
|
apiUrl: "",
|
||||||
|
helpUrl: "",
|
||||||
apiToken: "-",
|
apiToken: "-",
|
||||||
userId: 0,
|
userId: 0,
|
||||||
roles: 0,
|
roles: 0,
|
||||||
@@ -45,6 +46,9 @@ export default new Vuex.Store({
|
|||||||
setAPIURL(state, data) {
|
setAPIURL(state, data) {
|
||||||
state.apiUrl = data;
|
state.apiUrl = data;
|
||||||
},
|
},
|
||||||
|
setHelpURL(state, data) {
|
||||||
|
state.helpUrl = data;
|
||||||
|
},
|
||||||
logItem(state, msg) {
|
logItem(state, msg) {
|
||||||
msg = Date.now() + "|" + msg;
|
msg = Date.now() + "|" + msg;
|
||||||
state.logArray.push(msg);
|
state.logArray.push(msg);
|
||||||
|
|||||||
Reference in New Issue
Block a user