mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
feat(alerting): add alerts for notification edits
This commit is contained in:
parent
457eb91c2f
commit
f3d6035c59
@ -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', '']);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user