Remote state

This commit is contained in:
2022-10-01 07:05:12 -04:00
parent 976a96e5e0
commit 24da5347f4
5 changed files with 57 additions and 48 deletions

View File

@ -88,10 +88,10 @@
computed: {
host: {
get() {
return vistax.state.host;
return vistax.localstate.host;
},
set(value) {
vistax.state.host = value;
vistax.localstate.host = value;
}
}
},
@ -111,7 +111,10 @@
server(value) { this.x_server = value; },
x_server(value) { this.$emit('update:server', value); },
user(value) { this.x_user = value; },
x_user(value) { this.$emit('update:user', value); }
async x_user(value) {
if(value) await this.x_client.setup_remotestate();
this.$emit('update:user', value);
}
},
methods: {
async connect() {