From 74c795b294b3ae1e49317b3b9bd8a56e6c242e2e Mon Sep 17 00:00:00 2001 From: Daniel Lee Date: Thu, 9 Mar 2017 16:55:16 +0100 Subject: [PATCH] panel: use meta.soloMode instead of url check when checking if rendering a png for lazy loading of panels. --- public/app/features/panel/panel_ctrl.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/public/app/features/panel/panel_ctrl.ts b/public/app/features/panel/panel_ctrl.ts index 0c80d7a88e3..8de78291baa 100644 --- a/public/app/features/panel/panel_ctrl.ts +++ b/public/app/features/panel/panel_ctrl.ts @@ -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; }