From 22805ce56bd2bc89bb23a05d83c925771e46b2b3 Mon Sep 17 00:00:00 2001 From: bergquist Date: Tue, 6 Sep 2016 14:42:34 +0200 Subject: [PATCH] fix(alert_tab): fix broken alert history --- public/app/features/alerting/alert_tab_ctrl.ts | 7 +++++++ public/app/features/alerting/partials/alert_tab.html | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/public/app/features/alerting/alert_tab_ctrl.ts b/public/app/features/alerting/alert_tab_ctrl.ts index d10265a3ab7..c0cb0936f62 100644 --- a/public/app/features/alerting/alert_tab_ctrl.ts +++ b/public/app/features/alerting/alert_tab_ctrl.ts @@ -106,6 +106,13 @@ export class AlertTabCtrl { })); } + changeTabIndex(newTabIndex) { + this.subTabIndex = newTabIndex; + + if (this.subTabIndex === 2) { + this.getAlertHistory(); + } + } notificationAdded() { var model = _.findWhere(this.notifications, {name: this.addNotificationSegment.value}); diff --git a/public/app/features/alerting/partials/alert_tab.html b/public/app/features/alerting/partials/alert_tab.html index 85919ef8a63..db2fa978869 100644 --- a/public/app/features/alerting/partials/alert_tab.html +++ b/public/app/features/alerting/partials/alert_tab.html @@ -2,15 +2,15 @@