From 24da5347f4717a556195ca51a07c6aa490dfcf8b Mon Sep 17 00:00:00 2001 From: inportb Date: Sat, 1 Oct 2022 07:05:12 -0400 Subject: [PATCH] Remote state --- htdocs/Login.vue | 9 ++++-- htdocs/RouteRecall.vue | 5 ++- htdocs/RouteSchedule.vue | 6 ++-- htdocs/ViewSchedule.vue | 15 +++------ htdocs/vistax.mjs | 70 ++++++++++++++++++++++++---------------- 5 files changed, 57 insertions(+), 48 deletions(-) diff --git a/htdocs/Login.vue b/htdocs/Login.vue index b573874..31df4f6 100644 --- a/htdocs/Login.vue +++ b/htdocs/Login.vue @@ -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() { diff --git a/htdocs/RouteRecall.vue b/htdocs/RouteRecall.vue index 98b133f..87a95fa 100644 --- a/htdocs/RouteRecall.vue +++ b/htdocs/RouteRecall.vue @@ -45,7 +45,6 @@