Commit 311ec3c0 by Torkel Ödegaard Committed by GitHub

Merge pull request #14324 from grafana/panel-initialized-fix

fix for panel-initialized event not being called
parents 769407cd 757cada4
...@@ -223,6 +223,8 @@ export class DashboardModel { ...@@ -223,6 +223,8 @@ export class DashboardModel {
} }
panelInitialized(panel: PanelModel) { panelInitialized(panel: PanelModel) {
panel.initialized();
if (!this.otherPanelInFullscreen(panel)) { if (!this.otherPanelInFullscreen(panel)) {
panel.refresh(); panel.refresh();
} }
......
...@@ -132,7 +132,7 @@ export class PanelModel { ...@@ -132,7 +132,7 @@ export class PanelModel {
} }
} }
panelInitialized() { initialized() {
this.events.emit('panel-initialized'); this.events.emit('panel-initialized');
} }
......
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