Explorar o código

refactor(): refactoring PR #7124

Torkel Ödegaard %!s(int64=9) %!d(string=hai) anos
pai
achega
5fc5971145
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      public/app/features/dashboard/time_srv.ts

+ 5 - 0
public/app/features/dashboard/time_srv.ts

@@ -114,6 +114,11 @@ class TimeSrv {
     } else {
       this.cancelNextRefresh();
     }
+
+    // update url
+    var params = this.$location.search();
+    params.refresh = interval;
+    this.$location.search(params);
   }
 
   refreshDashboard() {