From f56d45ac56ed568e6f3f8edee4468a18e68668a0 Mon Sep 17 00:00:00 2001 From: bergquist Date: Wed, 7 Sep 2016 15:13:24 +0200 Subject: [PATCH] feat(alerting): include default notifications in alert tab --- public/app/features/alerting/alert_tab_ctrl.ts | 8 ++++++++ public/app/features/alerting/partials/alert_tab.html | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/public/app/features/alerting/alert_tab_ctrl.ts b/public/app/features/alerting/alert_tab_ctrl.ts index f3cc998deaa..b372520507d 100644 --- a/public/app/features/alerting/alert_tab_ctrl.ts +++ b/public/app/features/alerting/alert_tab_ctrl.ts @@ -76,6 +76,14 @@ export class AlertTabCtrl { this.alertNotifications.push(model); } }); + + _.each(this.notifications, item => { + if (item.isDefault) { + item.iconClass = this.getNotificationIcon(item.type); + item.bgColor = "#00678b"; + this.alertNotifications.push(item); + } + }); }); } diff --git a/public/app/features/alerting/partials/alert_tab.html b/public/app/features/alerting/partials/alert_tab.html index 770e3a2cb05..fbbcf810ee6 100644 --- a/public/app/features/alerting/partials/alert_tab.html +++ b/public/app/features/alerting/partials/alert_tab.html @@ -6,7 +6,7 @@
  • - Notifications ({{ctrl.alert.notifications.length}}) + Notifications ({{ctrl.alertNotifications.length}})
  • @@ -122,9 +122,9 @@
    Send to - +  {{nc.name}}  - +