Connection failure errors will now correctly toggle style change on Connection Status window

This commit is contained in:
NI
2019-10-24 23:31:34 +08:00
parent 6a3202e2b1
commit 0a28b9f498

View File

@@ -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;
}
};