|
|
@@ -17,6 +17,7 @@ class AlertListPanel extends PanelCtrl {
|
|
|
{text: 'Recent state changes', value: 'changes'}
|
|
|
];
|
|
|
|
|
|
+ contentHeight: string;
|
|
|
stateFilter: any = {};
|
|
|
currentAlerts: any = [];
|
|
|
alertHistory: any = [];
|
|
|
@@ -27,6 +28,7 @@ class AlertListPanel extends PanelCtrl {
|
|
|
stateFilter: []
|
|
|
};
|
|
|
|
|
|
+
|
|
|
/** @ngInject */
|
|
|
constructor($scope, $injector, private $location, private backendSrv, private timeSrv, private templateSrv) {
|
|
|
super($scope, $injector);
|
|
|
@@ -55,6 +57,7 @@ class AlertListPanel extends PanelCtrl {
|
|
|
}
|
|
|
|
|
|
onRender() {
|
|
|
+ this.contentHeight = "max-height: " + this.height + "px;";
|
|
|
if (this.panel.show === 'current') {
|
|
|
this.getCurrentAlertState();
|
|
|
}
|