mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
appState no longer needed for visualize embeddable (#17330)
This commit is contained in:
parent
1fd0558bd3
commit
ae8c05e77e
3 changed files with 0 additions and 14 deletions
|
@ -11,10 +11,6 @@ export class DashboardContainerAPI extends ContainerAPI {
|
|||
return this.dashboardState.updatePanel(panelIndex, panelAttributes);
|
||||
}
|
||||
|
||||
getAppState() {
|
||||
return this.dashboardState.appState;
|
||||
}
|
||||
|
||||
registerPanelIndexPattern(panelIndex, pattern) {
|
||||
this.dashboardState.registerPanelIndexPatternMap(panelIndex, pattern);
|
||||
this.dashboardState.saveState();
|
||||
|
|
|
@ -68,9 +68,6 @@ export class VisualizeEmbeddableFactory extends EmbeddableFactory {
|
|||
};
|
||||
uiState.on('change', uiStateChangeHandler);
|
||||
|
||||
savedObject.vis.listeners.click = this.filterBarClickHandler(container.getAppState());
|
||||
savedObject.vis.listeners.brush = this.brushEvent(container.getAppState());
|
||||
|
||||
container.registerPanelIndexPattern(panel.panelIndex, savedObject.vis.indexPattern);
|
||||
|
||||
const handler = loader.embedVisualizationWithSavedObject(domNode, savedObject, {
|
||||
|
|
|
@ -13,13 +13,6 @@ export class ContainerAPI {
|
|||
throw new Error('Must implement addFilter.');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {AppState}
|
||||
*/
|
||||
getAppState() {
|
||||
throw new Error('Must implement getAppState.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Call this to tell the container that this panel uses a particular index pattern.
|
||||
* @param {string} panelIndex - a unique id that identifies the panel to update.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue