Improved receiving notifications
This commit is contained in:
@ -12,8 +12,8 @@ export const useNotificationStore: StoreDefinition = defineStore('notifications'
|
||||
addNotification(notification: Notification) {
|
||||
this.notifications.push(notification);
|
||||
},
|
||||
removeNotification(index: number) {
|
||||
this.notifications.splice(index, 1);
|
||||
removeNotification(id: string) {
|
||||
this.notifications = this.notifications.filter((notification: Notification) => notification.id !== id);
|
||||
}
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user