File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed
Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 6464 }
6565}
6666
67+ # sepiaFW-alwaysOn-notifications .check-channels .material-icons {
68+ color : # ff2550 ;
69+ }
70+
6771.sepiaFW-alwaysOn-alarm-anim {
6872 animation : alarm 1s infinite ease-in;
6973}
Original file line number Diff line number Diff line change @@ -118,12 +118,13 @@ function sepiaFW_build_always_on(){
118118 activateBluetoothBeaconIfSet ( ) ;
119119
120120 AlwaysOn . isOpen = true ;
121- //restore some states (only support loading and waiting right now)
121+ //restore some states (only support loading, waiting and check-channel right now)
122122 if ( avatarIsWaiting ) {
123123 AlwaysOn . avatarAwaitingInput ( ) ;
124124 } else if ( avatarIsLoading ) {
125125 AlwaysOn . avatarLoading ( ) ;
126126 }
127+ SepiaFW . animate . channels . refreshStateCheckChannels ( ) ;
127128 }
128129 var openFadeTimer ;
129130
Original file line number Diff line number Diff line change @@ -176,9 +176,18 @@ function sepiaFW_build_animate(){
176176 var markedChannels = new Set ( ) ;
177177 Animate . channels . setStateCheckChannels = function ( ) {
178178 $ ( '#sepiaFW-nav-users-btn' ) . addClass ( 'marked' ) ;
179+ $ ( '#sepiaFW-alwaysOn-notifications' ) . addClass ( 'check-channels' ) ;
179180 }
180181 Animate . channels . clearStateCheckChannels = function ( ) {
181182 $ ( '#sepiaFW-nav-users-btn' ) . removeClass ( 'marked' ) ;
183+ $ ( '#sepiaFW-alwaysOn-notifications' ) . removeClass ( 'check-channels' ) ;
184+ }
185+ Animate . channels . refreshStateCheckChannels = function ( ) {
186+ if ( markedChannels . size == 0 ) {
187+ Animate . channels . clearStateCheckChannels ( ) ;
188+ } else {
189+ Animate . channels . setStateCheckChannels ( ) ;
190+ }
182191 }
183192 Animate . channels . markChannelEntry = function ( channelId ) {
184193 var $channelEntry = $ ( '#sepiaFW-chat-channel-view' ) . find ( '[data-channel-id="' + channelId + '"]' ) ;
You can’t perform that action at this time.
0 commit comments