Commit 4d403267 by hc4 Committed by Torkel Ödegaard

Add refresh query parameter parsing (#5729)

parent 01e5fd62
......@@ -20,12 +20,13 @@ define([
this.dashboard = dashboard;
this.time = dashboard.time;
this.refresh = dashboard.refresh;
this._initTimeFromUrl();
this._parseTime();
if(this.dashboard.refresh) {
this.setAutoRefresh(this.dashboard.refresh);
if(this.refresh) {
this.setAutoRefresh(this.refresh);
}
};
......@@ -65,6 +66,9 @@ define([
if ($routeParams.to) {
this.time.to = this._parseUrlParam($routeParams.to) || this.time.to;
}
if ($routeParams.refresh) {
this.refresh = $routeParams.refresh || this.refresh;
}
};
this.setAutoRefresh = function (interval) {
......
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