UI: Fixed ws in notification
This commit is contained in:
parent
af13292b4b
commit
f1fb7d631e
@ -72,7 +72,7 @@ export class NotificationWebsocketService extends WebsocketService<NotificationS
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
if (this.cmdWrapper.markAsReadCmd || this.cmdWrapper.markAllAsReadCmd) {
|
if (this.cmdWrapper.unreadCountSubCmd || this.cmdWrapper.unreadSubCmd) {
|
||||||
this.subscribersCount++;
|
this.subscribersCount++;
|
||||||
}
|
}
|
||||||
this.publishCommands();
|
this.publishCommands();
|
||||||
|
|||||||
@ -61,7 +61,6 @@ export class NotificationBellComponent implements OnDestroy {
|
|||||||
private renderer: Renderer2,
|
private renderer: Renderer2,
|
||||||
private viewContainerRef: ViewContainerRef,
|
private viewContainerRef: ViewContainerRef,
|
||||||
private store: Store<AppState>,) {
|
private store: Store<AppState>,) {
|
||||||
this.initSubscription();
|
|
||||||
this.store.pipe(select(selectIsAuthenticated)).subscribe((value) => {
|
this.store.pipe(select(selectIsAuthenticated)).subscribe((value) => {
|
||||||
if (value) {
|
if (value) {
|
||||||
this.initSubscription();
|
this.initSubscription();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user