|
@@ -24,8 +24,7 @@ class AlertListPanel extends PanelCtrl {
|
|
|
panelDefaults = {
|
|
panelDefaults = {
|
|
|
show: 'current',
|
|
show: 'current',
|
|
|
limit: 10,
|
|
limit: 10,
|
|
|
- stateFilter: [],
|
|
|
|
|
- useTimeRange: false
|
|
|
|
|
|
|
+ stateFilter: []
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
/** @ngInject */
|
|
/** @ngInject */
|
|
@@ -72,10 +71,8 @@ class AlertListPanel extends PanelCtrl {
|
|
|
newState: this.panel.stateFilter
|
|
newState: this.panel.stateFilter
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
- if (this.panel.useTimeRange) {
|
|
|
|
|
- params.from = dateMath.parse(this.dashboard.time.from).unix() * 1000;
|
|
|
|
|
- params.to = dateMath.parse(this.dashboard.time.to).unix() * 1000;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ params.from = dateMath.parse(this.dashboard.time.from).unix() * 1000;
|
|
|
|
|
+ params.to = dateMath.parse(this.dashboard.time.to).unix() * 1000;
|
|
|
|
|
|
|
|
this.backendSrv.get(`/api/annotations`, params)
|
|
this.backendSrv.get(`/api/annotations`, params)
|
|
|
.then(res => {
|
|
.then(res => {
|