mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
adding refresh url param to pass refresh interval #7124
This commit is contained in:
parent
36929c2a92
commit
870c5f8cef
@ -75,7 +75,12 @@ define([
|
||||
};
|
||||
|
||||
this.setAutoRefresh = function (interval) {
|
||||
this.dashboard.refresh = interval;
|
||||
if ($routeParams.refresh) {
|
||||
this.dashboard.refresh = $routeParams.refresh;
|
||||
}
|
||||
else {
|
||||
this.dashboard.refresh = interval;
|
||||
}
|
||||
if (interval) {
|
||||
var interval_ms = kbn.interval_to_ms(interval);
|
||||
$timeout(function () {
|
||||
|
Loading…
Reference in New Issue
Block a user