mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
panel: use meta.soloMode instead of url check
when checking if rendering a png for lazy loading of panels.
This commit is contained in:
parent
c176de89c9
commit
74c795b294
@ -76,12 +76,8 @@ export class PanelCtrl {
|
|||||||
profiler.renderingCompleted(this.panel.id, this.timing);
|
profiler.renderingCompleted(this.panel.id, this.timing);
|
||||||
}
|
}
|
||||||
|
|
||||||
private isRenderingPng () {
|
|
||||||
return window.location.href.indexOf("/dashboard-solo/db") >= 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
refresh() {
|
refresh() {
|
||||||
if (!this.isPanelVisible() && !this.isRenderingPng() && !this.dashboard.snapshot) {
|
if (!this.isPanelVisible() && !this.dashboard.meta.soloMode && !this.dashboard.snapshot) {
|
||||||
this.skippedLastRefresh = true;
|
this.skippedLastRefresh = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user