Closes #282, Disable auto refresh zooming in (every time you change to an absolute time range), refresh will be restored when you change time range back to relative
This commit is contained in:
@@ -87,6 +87,16 @@ define([
|
||||
this.setTime = function(time) {
|
||||
_.extend(self.time, time);
|
||||
|
||||
// disable refresh if we have an absolute time
|
||||
if (time.to !== 'now') {
|
||||
self.old_refresh = dashboard.current.refresh;
|
||||
dashboard.set_interval(false);
|
||||
}
|
||||
else if (self.old_refresh && self.old_refresh !== dashboard.current.refresh) {
|
||||
dashboard.set_interval(self.old_refresh);
|
||||
self.old_refresh = null;
|
||||
}
|
||||
|
||||
$timeout(function(){
|
||||
dashboard.refresh();
|
||||
},0);
|
||||
|
||||
Reference in New Issue
Block a user