adding refresh url param to pass refresh interval #7124

This commit is contained in:
Matthew McGinn 2017-01-05 00:15:52 -05:00
parent 36929c2a92
commit 870c5f8cef

View File

@ -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 () {