Commit 80130d1c by Torkel Ödegaard Committed by GitHub

AngularPanels: Fixes issue with discrete panel that used the initialized event (#30133)

parent e4607a4a
......@@ -22,6 +22,7 @@ export const PanelEvents = {
dataSnapshotLoad: eventFactory<DataQueryResponseData[]>('data-snapshot-load'),
editModeInitialized: eventFactory('init-edit-mode'),
initPanelActions: eventFactory<AngularPanelMenuItem[]>('init-panel-actions'),
initialized: eventFactory('panel-initialized'),
panelTeardown: eventFactory('panel-teardown'),
render: eventFactory<any>('render'),
};
......
......@@ -51,6 +51,7 @@ export class PanelCtrl {
panelDidMount() {
this.events.emit(PanelEvents.componentDidMount);
this.events.emit(PanelEvents.initialized);
this.dashboard.panelInitialized(this.panel);
}
......
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