1
0
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:
Nicolas Constant 2019-02-11 19:54:46 -05:00
parent 788d89a294
commit 2fd69fbf8f
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688

View File

@ -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);
}
}