Removed 'connected' state in favour of 'ready' state
This commit is contained in:
parent
9acf4d874d
commit
9610b91cb8
6 changed files with 46 additions and 38 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue