Removed 'connected' state in favour of 'ready' state

This commit is contained in:
Joel Collins 2019-02-12 11:10:30 +00:00
parent 9acf4d874d
commit 9610b91cb8
6 changed files with 46 additions and 38 deletions

View file

@ -36,10 +36,8 @@ export default {
this.hostname,
this.port
]);
// Try to get config JSON from the newly submitted host
this.$store.dispatch('updateConfig');
// Update the microscope state while we're at it
this.$store.dispatch('updateState');
// Try to get config and state JSON from the newly submitted host
this.$store.dispatch('firstConnect')
}
},
@ -55,7 +53,7 @@ export default {
IpFormClasses: function () {
return {
'uk-form-danger': !this.$store.state.available,
'uk-form-success': this.$store.state.connected
'uk-form-success': this.$store.getters.ready
}
}
}