unsubscribre from "read all" event
This commit is contained in:
parent
05a90d6fbd
commit
a6b04e9ce5
|
@ -348,12 +348,13 @@ export class NavbarComponent extends BaseComponent implements OnInit {
|
|||
position: { top: '71px', right: '4.8em' },
|
||||
width: "27.0rem"
|
||||
});
|
||||
this.inAppNotificationDialog.componentInstance.onReadAll.subscribe(() => {
|
||||
const onReadAllSubscription = this.inAppNotificationDialog.componentInstance.onReadAll.subscribe(() => {
|
||||
this.countUnreadInappNotifications();
|
||||
});
|
||||
this.inAppNotificationDialog.afterClosed().pipe(takeUntil(this._destroyed)).subscribe(result => {
|
||||
this.countUnreadInappNotifications();
|
||||
this.inAppNotificationDialog = null;
|
||||
onReadAllSubscription.unsubscribe();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue