From daea38060f3f640475ec6c040c313c36f8c1e677 Mon Sep 17 00:00:00 2001 From: bergquist Date: Mon, 5 Sep 2016 08:27:12 +0200 Subject: [PATCH] feat(notifications): redirect to notification list after creation. --- public/app/features/alerting/notification_edit_ctrl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/features/alerting/notification_edit_ctrl.ts b/public/app/features/alerting/notification_edit_ctrl.ts index fe7aac197bc..fc33118cb00 100644 --- a/public/app/features/alerting/notification_edit_ctrl.ts +++ b/public/app/features/alerting/notification_edit_ctrl.ts @@ -38,8 +38,8 @@ export class AlertNotificationEditCtrl { }); } 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', '']); + this.$location.path('alerting/notifications'); }); } }