mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
[UiActions] fix race condition registering actions (#90944)
This commit is contained in:
parent
b81967e4d4
commit
9da625b31d
1 changed files with 14 additions and 15 deletions
|
@ -101,25 +101,10 @@ export class DataPublicPlugin
|
||||||
});
|
});
|
||||||
|
|
||||||
uiActions.registerTrigger(applyFilterTrigger);
|
uiActions.registerTrigger(applyFilterTrigger);
|
||||||
|
|
||||||
uiActions.registerAction(
|
uiActions.registerAction(
|
||||||
createFilterAction(queryService.filterManager, queryService.timefilter.timefilter)
|
createFilterAction(queryService.filterManager, queryService.timefilter.timefilter)
|
||||||
);
|
);
|
||||||
|
|
||||||
uiActions.addTriggerAction(
|
|
||||||
'SELECT_RANGE_TRIGGER',
|
|
||||||
createSelectRangeAction(() => ({
|
|
||||||
uiActions: startServices().plugins.uiActions,
|
|
||||||
}))
|
|
||||||
);
|
|
||||||
|
|
||||||
uiActions.addTriggerAction(
|
|
||||||
'VALUE_CLICK_TRIGGER',
|
|
||||||
createValueClickAction(() => ({
|
|
||||||
uiActions: startServices().plugins.uiActions,
|
|
||||||
}))
|
|
||||||
);
|
|
||||||
|
|
||||||
inspector.registerView(
|
inspector.registerView(
|
||||||
getTableViewDescription(() => ({
|
getTableViewDescription(() => ({
|
||||||
uiActions: startServices().plugins.uiActions,
|
uiActions: startServices().plugins.uiActions,
|
||||||
|
@ -174,6 +159,20 @@ export class DataPublicPlugin
|
||||||
const search = this.searchService.start(core, { fieldFormats, indexPatterns });
|
const search = this.searchService.start(core, { fieldFormats, indexPatterns });
|
||||||
setSearchService(search);
|
setSearchService(search);
|
||||||
|
|
||||||
|
uiActions.addTriggerAction(
|
||||||
|
'SELECT_RANGE_TRIGGER',
|
||||||
|
createSelectRangeAction(() => ({
|
||||||
|
uiActions,
|
||||||
|
}))
|
||||||
|
);
|
||||||
|
|
||||||
|
uiActions.addTriggerAction(
|
||||||
|
'VALUE_CLICK_TRIGGER',
|
||||||
|
createValueClickAction(() => ({
|
||||||
|
uiActions,
|
||||||
|
}))
|
||||||
|
);
|
||||||
|
|
||||||
uiActions.addTriggerAction(
|
uiActions.addTriggerAction(
|
||||||
APPLY_FILTER_TRIGGER,
|
APPLY_FILTER_TRIGGER,
|
||||||
uiActions.getAction(ACTION_GLOBAL_APPLY_FILTER)
|
uiActions.getAction(ACTION_GLOBAL_APPLY_FILTER)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue