From 0bc482eba0b55f674968c8d15464a820bb4d8bb0 Mon Sep 17 00:00:00 2001 From: Rashid Khan Date: Tue, 5 Nov 2013 14:35:00 -0700 Subject: [PATCH] Fixed lack of refresh on dashboards that do not use a pattern --- src/app/services/dashboard.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/services/dashboard.js b/src/app/services/dashboard.js index 5934f349c57..c9203864d13 100644 --- a/src/app/services/dashboard.js +++ b/src/app/services/dashboard.js @@ -158,6 +158,8 @@ function (angular, $, kbn, _, config, moment, Modernizr) { } } else { self.indices = [self.current.index.default]; + console.log(self.indices); + console.log('sending refresh'); querySrv.resolve().then(function(){$rootScope.$broadcast('refresh');}); } }; @@ -194,9 +196,7 @@ function (angular, $, kbn, _, config, moment, Modernizr) { // If there's an interval set, the indices have not been calculated yet, // so there is no data. Call refresh to calculate the indices and notify the panels. - if(dashboard.index.interval !== 'none') { - self.refresh(); - } + self.refresh(); if(dashboard.refresh) { self.set_interval(dashboard.refresh);