From f3d6035c59bf3a256658aa78e116f1b2f124961b Mon Sep 17 00:00:00 2001 From: bergquist Date: Mon, 22 Aug 2016 14:49:40 +0200 Subject: [PATCH] feat(alerting): add alerts for notification edits --- public/app/features/alerting/notification_edit_ctrl.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/app/features/alerting/notification_edit_ctrl.ts b/public/app/features/alerting/notification_edit_ctrl.ts index ffffde52e4c..fe7aac197bc 100644 --- a/public/app/features/alerting/notification_edit_ctrl.ts +++ b/public/app/features/alerting/notification_edit_ctrl.ts @@ -34,10 +34,12 @@ export class AlertNotificationEditCtrl { if (this.model.id) { this.backendSrv.put(`/api/alert-notifications/${this.model.id}`, this.model).then(res => { this.model = res; + this.$scope.appEvent('alert-success', ['Notification updated', '']); }); } else { this.backendSrv.post(`/api/alert-notifications`, this.model).then(res => { this.$location.path('alerting/notification/' + res.id + '/edit'); + this.$scope.appEvent('alert-success', ['Notification created', '']); }); } }