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 {
5252
5353 updateOnConnection ( msg : string ) {
5454 this . statusIndicator . classList . add ( 'connected' ) ;
55+ this . statusIndicator . classList . remove ( 'disconnected' ) ;
5556 this . deviceLabel . textContent = msg ;
5657 this . element . title = `Open RedBoard Device Manager (${ msg } )` ;
5758 }
5859 updateOnDisconnection ( msg : string ) {
5960 this . statusIndicator . classList . add ( 'disconnected' ) ;
61+ this . statusIndicator . classList . add ( 'connected' ) ;
6062 this . deviceLabel . textContent = msg ;
6163 this . element . title = `Open RedBoard Device Manager (${ msg } )` ;
6264 }
Original file line number Diff line number Diff line change @@ -425,6 +425,10 @@ export const minimizedStyles = `
425425 background-color: #2ecc71;
426426 }
427427
428+ .status-indicator.connected {
429+ background-color: #e74c3c;
430+ }
431+
428432 .device-label {
429433 font-size: 11px;
430434 color: #555;
You can’t perform that action at this time.
0 commit comments