Commit e832519d by Rashid Khan

Potential fix for #621

parent f1943362
......@@ -184,6 +184,8 @@ function (angular, $, kbn, _, config, moment, Modernizr) {
// Set the current dashboard
self.current = _.clone(dashboard);
// Delay this until we're sure that querySrv and filterSrv are ready
$timeout(function() {
// Ok, now that we've setup the current dashboard, we can inject our services
querySrv = $injector.get('querySrv');
filterSrv = $injector.get('filterSrv');
......@@ -191,10 +193,10 @@ function (angular, $, kbn, _, config, moment, Modernizr) {
// Make sure these re-init
querySrv.init();
filterSrv.init();
// 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.
},0).then(function() {
// Call refresh to calculate the indices and notify the panels that we're ready to roll
self.refresh();
});
if(dashboard.refresh) {
self.set_interval(dashboard.refresh);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment