Commit f91fcaf5 by Adrian Muraru Committed by Torkel Ödegaard

Dashboard PNG export (#6644)

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