File tree 2 files changed +4
-9
lines changed
2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -10,22 +10,20 @@ span#status-label {
10
10
text-align : left;
11
11
}
12
12
13
+ /* Make it a circle */
13
14
div # indicator {
14
15
width : 12px ;
15
16
height : 12px ;
16
17
border-radius : 6px ;
17
18
margin : 0 10px ;
18
19
display : inline-block;
20
+ background : # ffbf00 ; /* Ember by default, will be used for CONNECTING and CLOSING */
19
21
}
20
22
21
23
div .CLOSED # indicator {
22
24
background : red;
23
25
}
24
26
25
- div .CONNECTING # indicator , div .CLOSING # indicator {
26
- background : # ffbf00 ;
27
- }
28
-
29
27
div .OPEN # indicator {
30
28
background : green;
31
29
}
Original file line number Diff line number Diff line change @@ -9,16 +9,13 @@ import {RxStompState} from '@stomp/rx-stomp';
9
9
templateUrl : './status.component.html' ,
10
10
styleUrls : [ './status.component.css' ]
11
11
} )
12
- export class StatusComponent implements OnInit {
12
+ export class StatusComponent {
13
13
public connectionStatus$ : Observable < string > ;
14
14
15
15
constructor ( public rxStompService : RxStompService ) {
16
16
this . connectionStatus$ = rxStompService . connectionState$ . pipe ( map ( ( state ) => {
17
+ // convert numeric RxStompState to string
17
18
return RxStompState [ state ] ;
18
19
} ) ) ;
19
20
}
20
-
21
- ngOnInit ( ) {
22
- }
23
-
24
21
}
You can’t perform that action at this time.
0 commit comments