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