Commit 74c795b2 by Daniel Lee

panel: use meta.soloMode instead of url check

when checking if rendering a png for lazy loading of panels.
parent c176de89
......@@ -76,12 +76,8 @@ export class PanelCtrl {
profiler.renderingCompleted(this.panel.id, this.timing);
}
private isRenderingPng () {
return window.location.href.indexOf("/dashboard-solo/db") >= 0;
}
refresh() {
if (!this.isPanelVisible() && !this.isRenderingPng() && !this.dashboard.snapshot) {
if (!this.isPanelVisible() && !this.dashboard.meta.soloMode && !this.dashboard.snapshot) {
this.skippedLastRefresh = true;
return;
}
......
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