Commit 1a53d645 by Torkel Ödegaard

Merge branch 'v4.4.x'

parents 10f05803 91fb3f22
......@@ -116,16 +116,14 @@ class TimeSrv {
setAutoRefresh(interval) {
this.dashboard.refresh = interval;
this.cancelNextRefresh();
if (interval) {
var intervalMs = kbn.interval_to_ms(interval);
this.$timeout(() => {
this.refreshTimer = this.timer.register(this.$timeout(() => {
this.startNextRefreshTimer(intervalMs);
this.refreshDashboard();
}, intervalMs);
} else {
this.cancelNextRefresh();
}, intervalMs));
}
// update url
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment