Fixed Triggers panel refreshing.

This commit is contained in:
Alexander Zobnin
2016-03-31 21:40:02 +03:00
parent f5896a963f
commit c40b53eb57
3 changed files with 28 additions and 15 deletions

View File

@@ -80,7 +80,19 @@ class TriggerPanelCtrl extends MetricsPanelCtrl {
this.addEditorTab('Options', triggerPanelEditor, 2);
}
refresh() {
this.onMetricsPanelRefresh();
}
onMetricsPanelRefresh() {
// ignore fetching data if another panel is in fullscreen
if (this.otherPanelInFullscreenMode()) { return; }
// clear loading/error state
delete this.error;
this.loading = true;
this.setTimeQueryStart();
this.refreshData();
}
@@ -196,7 +208,8 @@ class TriggerPanelCtrl extends MetricsPanelCtrl {
// Limit triggers number
self.triggerList = _.first(triggerList, self.panel.limit);
self.renderingCompleted();
this.setTimeQueryEnd();
this.loading = false;
});
});
});