Dashboard PNG export (#6644)

This commit is contained in:
Adrian Muraru 2016-12-06 09:05:13 +02:00 committed by Torkel Ödegaard
parent 167936f9b9
commit f91fcaf5cf

View File

@ -55,7 +55,8 @@
var rootScope = body.injector().get('$rootScope');
if (!rootScope) {return false;}
return rootScope.panelsRendered;
var panels = angular.element('div.panel:visible').length;
return rootScope.panelsRendered >= panels;
});
if (panelsRendered || tries === 1000) {