mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Fix lack of fetch when paused, fix fetch when turning auto-refresh off
This commit is contained in:
parent
791253091a
commit
295cda0edf
1 changed files with 5 additions and 3 deletions
|
@ -69,12 +69,14 @@ define(function (require) {
|
|||
var oldRefreshInterval;
|
||||
|
||||
return function () {
|
||||
if (diff(self.time, oldTime) || diff(self.refreshInterval, oldRefreshInterval)) {
|
||||
if (diff(self.time, oldTime)) {
|
||||
self.emit('update');
|
||||
if (!self.refreshInterval.pause) {
|
||||
self.emit('fetch');
|
||||
} else if (diff(self.refreshInterval, oldRefreshInterval)) {
|
||||
self.emit('update');
|
||||
if (!self.refreshInterval.pause && self.refreshInterval.value !== 0) {
|
||||
self.emit('fetch');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
oldTime = _.clone(self.time);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue