Updated host links to use store baseUri
This commit is contained in:
parent
293e0665c6
commit
39d45bc749
7 changed files with 29 additions and 47 deletions
|
|
@ -93,14 +93,10 @@ export default {
|
|||
|
||||
computed: {
|
||||
settingsUri: function() {
|
||||
return `http://${this.$store.state.host}:${
|
||||
this.$store.state.port
|
||||
}/api/v2/settings`;
|
||||
return `${this.$store.getters.baseUri}/api/v2/settings`;
|
||||
},
|
||||
pluginsUri: function() {
|
||||
return `http://${this.$store.state.host}:${
|
||||
this.$store.state.port
|
||||
}/api/v2/plugins`;
|
||||
return `${this.$store.getters.baseUri}/api/v2/plugins`;
|
||||
}
|
||||
},
|
||||
|
||||
|
|
@ -132,9 +128,7 @@ export default {
|
|||
var link =
|
||||
plugins.AutocalibrationPlugin.views.recalibrate.links.self;
|
||||
// Store plugin action URI
|
||||
this.recalibrationUri = `http://${this.$store.state.host}:${
|
||||
this.$store.state.port
|
||||
}${link}`;
|
||||
this.recalibrationUri = `${this.$store.getters.baseUri}${link}`;
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
|
|
|
|||
|
|
@ -80,9 +80,7 @@ export default {
|
|||
|
||||
computed: {
|
||||
settingsUri: function() {
|
||||
return `http://${this.$store.state.host}:${
|
||||
this.$store.state.port
|
||||
}/api/v2/settings`;
|
||||
return `${this.$store.getters.baseUri}/api/v2/settings`;
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue