Browse Source

UI: Fixed ws in notification

pull/7911/head
Vladyslav_Prykhodko 4 years ago
parent
commit
f1fb7d631e
  1. 2
      ui-ngx/src/app/core/ws/notification-websocket.service.ts
  2. 1
      ui-ngx/src/app/modules/home/components/notification/notification-bell.component.ts

2
ui-ngx/src/app/core/ws/notification-websocket.service.ts

@ -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.publishCommands();

1
ui-ngx/src/app/modules/home/components/notification/notification-bell.component.ts

@ -61,7 +61,6 @@ export class NotificationBellComponent implements OnDestroy {
private renderer: Renderer2,
private viewContainerRef: ViewContainerRef,
private store: Store<AppState>,) {
this.initSubscription();
this.store.pipe(select(selectIsAuthenticated)).subscribe((value) => {
if (value) {
this.initSubscription();

Loading…
Cancel
Save