Browse Source

refactor(): refactoring PR #7124

Torkel Ödegaard 9 năm trước cách đây
mục cha
commit
5fc5971145

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

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