appState no longer needed for visualize embeddable (#17330)

This commit is contained in:
Stacey Gammon 2018-03-24 08:05:58 -04:00 committed by GitHub
parent 1fd0558bd3
commit ae8c05e77e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 14 deletions

View file

@ -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();

View file

@ -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, {

View file

@ -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.