Connection failure errors will now correctly toggle style change on Connection Status window
This commit is contained in:
@@ -105,6 +105,8 @@ export function build(ctx) {
|
|||||||
outboundHistory: outboundHistory.get()
|
outboundHistory: outboundHistory.get()
|
||||||
},
|
},
|
||||||
connecting() {
|
connecting() {
|
||||||
|
isClosed = false;
|
||||||
|
|
||||||
this.message = "--";
|
this.message = "--";
|
||||||
this.classStyle = "working";
|
this.classStyle = "working";
|
||||||
this.windowClass = "";
|
this.windowClass = "";
|
||||||
@@ -186,6 +188,8 @@ export function build(ctx) {
|
|||||||
this.status.description = connectionStatusDisconnected + ": " + e;
|
this.status.description = connectionStatusDisconnected + ": " + e;
|
||||||
},
|
},
|
||||||
failed(e) {
|
failed(e) {
|
||||||
|
isClosed = true;
|
||||||
|
|
||||||
ctx.connector.inputting = false;
|
ctx.connector.inputting = false;
|
||||||
|
|
||||||
if (e.code) {
|
if (e.code) {
|
||||||
@@ -196,6 +200,7 @@ export function build(ctx) {
|
|||||||
|
|
||||||
this.status.delay = -1;
|
this.status.delay = -1;
|
||||||
this.classStyle = "red flash";
|
this.classStyle = "red flash";
|
||||||
|
this.windowClass = "red";
|
||||||
this.status.description = connectionStatusDisconnected + ". Error: " + e;
|
this.status.description = connectionStatusDisconnected + ". Error: " + e;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user