Fix inability to select different VistA server upon connection failure

This commit is contained in:
Jiang Yio 2023-04-24 21:33:08 -04:00
parent 6c263b00dc
commit 5c75028a2a

View File

@ -133,7 +133,10 @@
console.log('Backend secret', this.secret); console.log('Backend secret', this.secret);
console.log(this.banner); 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.connected.value) { stop(); this.x_client = this.x_server = this.x_user = null; this.fail = true; } });
} else this.fail = true; } else {
this.fail = true;
this.host = undefined;
}
}, },
async login(evt) { async login(evt) {
if(this.x_client) { if(this.x_client) {