File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -52,11 +52,13 @@ export class MinimizedButton {
52
52
53
53
updateOnConnection ( msg : string ) {
54
54
this . statusIndicator . classList . add ( 'connected' ) ;
55
+ this . statusIndicator . classList . remove ( 'disconnected' ) ;
55
56
this . deviceLabel . textContent = msg ;
56
57
this . element . title = `Open RedBoard Device Manager (${ msg } )` ;
57
58
}
58
59
updateOnDisconnection ( msg : string ) {
59
60
this . statusIndicator . classList . add ( 'disconnected' ) ;
61
+ this . statusIndicator . classList . add ( 'connected' ) ;
60
62
this . deviceLabel . textContent = msg ;
61
63
this . element . title = `Open RedBoard Device Manager (${ msg } )` ;
62
64
}
Original file line number Diff line number Diff line change @@ -425,6 +425,10 @@ export const minimizedStyles = `
425
425
background-color: #2ecc71;
426
426
}
427
427
428
+ .status-indicator.connected {
429
+ background-color: #e74c3c;
430
+ }
431
+
428
432
.device-label {
429
433
font-size: 11px;
430
434
color: #555;
You can’t perform that action at this time.
0 commit comments