Browse Source

feat(alerting): add alerts for notification edits

bergquist 9 years ago
parent
commit
f3d6035c59
1 changed files with 2 additions and 0 deletions
  1. 2 0
      public/app/features/alerting/notification_edit_ctrl.ts

+ 2 - 0
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', '']);
       });
     }
   }