From 0a28b9f49829a9cd0c971d8e1e4909ff16fa0fdd Mon Sep 17 00:00:00 2001 From: NI Date: Thu, 24 Oct 2019 23:31:34 +0800 Subject: [PATCH] Connection failure errors will now correctly toggle style change on Connection Status window --- ui/home_socketctl.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ui/home_socketctl.js b/ui/home_socketctl.js index 2a1b082..f4f15da 100644 --- a/ui/home_socketctl.js +++ b/ui/home_socketctl.js @@ -105,6 +105,8 @@ export function build(ctx) { outboundHistory: outboundHistory.get() }, connecting() { + isClosed = false; + this.message = "--"; this.classStyle = "working"; this.windowClass = ""; @@ -186,6 +188,8 @@ export function build(ctx) { this.status.description = connectionStatusDisconnected + ": " + e; }, failed(e) { + isClosed = true; + ctx.connector.inputting = false; if (e.code) { @@ -196,6 +200,7 @@ export function build(ctx) { this.status.delay = -1; this.classStyle = "red flash"; + this.windowClass = "red"; this.status.description = connectionStatusDisconnected + ". Error: " + e; } };