|
@@ -23,7 +23,7 @@ export class AlertNotificationsListCtrl {
|
|
|
deleteNotification(id) {
|
|
deleteNotification(id) {
|
|
|
this.backendSrv.delete(`/api/alert-notifications/${id}`).then(() => {
|
|
this.backendSrv.delete(`/api/alert-notifications/${id}`).then(() => {
|
|
|
this.notifications = this.notifications.filter(notification => {
|
|
this.notifications = this.notifications.filter(notification => {
|
|
|
- return notification.id !== notificationId;
|
|
|
|
|
|
|
+ return notification.id !== id;
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|