Procházet zdrojové kódy

fix for panel-initialized event not being called

Torkel Ödegaard před 7 roky
rodič
revize
757cada4a5

+ 2 - 0
public/app/features/dashboard/dashboard_model.ts

@@ -223,6 +223,8 @@ export class DashboardModel {
   }
 
   panelInitialized(panel: PanelModel) {
+    panel.initialized();
+
     if (!this.otherPanelInFullscreen(panel)) {
       panel.refresh();
     }

+ 1 - 1
public/app/features/dashboard/panel_model.ts

@@ -132,7 +132,7 @@ export class PanelModel {
     }
   }
 
-  panelInitialized() {
+  initialized() {
     this.events.emit('panel-initialized');
   }