fix(alert_tab): fix broken alert history

This commit is contained in:
bergquist
2016-09-06 14:42:34 +02:00
parent 55b560a4a8
commit 22805ce56b
2 changed files with 10 additions and 3 deletions

View File

@@ -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});