|
|
@ -43,6 +43,22 @@ export class InAppNotificationBellComponent { |
|
|
|
this.polling$, |
|
|
|
this.polling$, |
|
|
|
]).pipe(map(([count]) => count)); |
|
|
|
]).pipe(map(([count]) => count)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
unreadCountText$ = this |
|
|
|
|
|
|
|
.unreadCount$ |
|
|
|
|
|
|
|
.pipe( |
|
|
|
|
|
|
|
map((count) => { |
|
|
|
|
|
|
|
if (count > 99) { |
|
|
|
|
|
|
|
return '99+'; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (count <= 0) { |
|
|
|
|
|
|
|
return ''; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return count; |
|
|
|
|
|
|
|
}), |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
constructor( |
|
|
|
constructor( |
|
|
|
readonly storeService:IanBellService, |
|
|
|
readonly storeService:IanBellService, |
|
|
|
readonly apiV3Service:ApiV3Service, |
|
|
|
readonly apiV3Service:ApiV3Service, |
|
|
|