mirror of
https://github.com/NicolasConstant/sengi
synced 2025-01-29 17:59:30 +01:00
fix notification hub not hiding notifications
This commit is contained in:
parent
788d89a294
commit
2fd69fbf8f
@ -16,7 +16,7 @@ export class NotificationHubComponent implements OnInit {
|
||||
this.notifications.push(notification);
|
||||
|
||||
setTimeout(() => {
|
||||
this.notifications = this.notifications.filter(x => x.id === notification.id);
|
||||
this.notifications = this.notifications.filter(x => x.id !== notification.id);
|
||||
}, 2000);
|
||||
});
|
||||
|
||||
@ -32,10 +32,6 @@ export class NotificationHubComponent implements OnInit {
|
||||
}
|
||||
|
||||
onClick(notification: NotificatioData): void{
|
||||
this.notifications = this.notifications.filter(x => x.id === notification.id);
|
||||
|
||||
setTimeout(() => {
|
||||
this.notifications.length = 0;
|
||||
}, 500);
|
||||
this.notifications = this.notifications.filter(x => x.id !== notification.id);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user