소스 검색

panel: use meta.soloMode instead of url check

when checking if rendering a png for lazy loading of panels.
Daniel Lee 8 년 전
부모
커밋
74c795b294
1개의 변경된 파일1개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 5
      public/app/features/panel/panel_ctrl.ts

+ 1 - 5
public/app/features/panel/panel_ctrl.ts

@@ -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;
     }
     }