diff --git a/htdocs/Login.vue b/htdocs/Login.vue index 69a01fb..dc39ded 100644 --- a/htdocs/Login.vue +++ b/htdocs/Login.vue @@ -132,7 +132,7 @@ this.$emit('update:server', this.x_server = (await this.x_client.serverinfo()).result); console.log('Backend secret', this.secret); console.log(this.banner); - var stop = watchEffect(() => { if(!this.x_client.connected.value) { stop(); this.x_client = this.x_server = this.x_user = null; this.fail = true; } }); + var stop = watchEffect(() => { if(!this.x_client.status.connected) { stop(); this.x_client = this.x_server = this.x_user = null; this.fail = true; } }); } else { this.fail = true; this.host = undefined; diff --git a/htdocs/vistax.mjs b/htdocs/vistax.mjs index 1fc37b8..f0fb0be 100644 --- a/htdocs/vistax.mjs +++ b/htdocs/vistax.mjs @@ -284,12 +284,12 @@ export function Client(cid, secret) { this.secret = secret; this.cid = cid; - this.connected = reactive({ value: true }); + this.status = reactive({ connected: true }); this.close = function() { console.log('CLOSE', cid); if(heartbeat) window.clearInterval(heartbeat); - this.connected.value = false; + this.status.connected = false; return vista.close(cid); }; this.call = async function(body, ...params) {