Updated host links to use store baseUri

This commit is contained in:
Joel Collins 2019-11-27 11:32:00 +00:00
parent 293e0665c6
commit 39d45bc749
7 changed files with 29 additions and 47 deletions

View file

@ -182,15 +182,23 @@ export default {
created: function() {
// Watch for host 'ready', then update status
this.$store.watch(
this.unwatchStoreFunction = this.$store.watch(
(state, getters) => {
return getters.ready;
},
() => {
ready => {
// Update plugins
this.updatePlugins();
if (ready) {
console.log("Left panel now ready");
} else {
console.log("Right panel now disabled");
this.currentTab = "status";
}
}
);
},
methods: {
updatePlugins: function() {
axios