diff --git a/public/app/features/alerting/NotificationsEditCtrl.ts b/public/app/features/alerting/NotificationsEditCtrl.ts index f0f11fce606..d71c169e557 100644 --- a/public/app/features/alerting/NotificationsEditCtrl.ts +++ b/public/app/features/alerting/NotificationsEditCtrl.ts @@ -100,6 +100,13 @@ export class AlertNotificationEditCtrl { } } + deleteNotification() { + this.backendSrv.delete(`/api/alert-notifications/${this.model.id}`).then((res: any) => { + this.model = res; + this.$location.path('alerting/notifications'); + }); + } + getNotifierTemplateId(type: string) { return `notifier-options-${type}`; } diff --git a/public/app/features/alerting/partials/notification_edit.html b/public/app/features/alerting/partials/notification_edit.html index 176e29f8514..0135561f963 100644 --- a/public/app/features/alerting/partials/notification_edit.html +++ b/public/app/features/alerting/partials/notification_edit.html @@ -70,6 +70,7 @@
+ Back