Browse Source

adding refresh url param to pass refresh interval #7124

Matthew McGinn 9 years ago
parent
commit
870c5f8cef
1 changed files with 6 additions and 1 deletions
  1. 6 1
      public/app/features/dashboard/timeSrv.js

+ 6 - 1
public/app/features/dashboard/timeSrv.js

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