mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -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.registerAction(
|
||||
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(
|
||||
getTableViewDescription(() => ({
|
||||
uiActions: startServices().plugins.uiActions,
|
||||
|
@ -174,6 +159,20 @@ export class DataPublicPlugin
|
|||
const search = this.searchService.start(core, { fieldFormats, indexPatterns });
|
||||
setSearchService(search);
|
||||
|
||||
uiActions.addTriggerAction(
|
||||
'SELECT_RANGE_TRIGGER',
|
||||
createSelectRangeAction(() => ({
|
||||
uiActions,
|
||||
}))
|
||||
);
|
||||
|
||||
uiActions.addTriggerAction(
|
||||
'VALUE_CLICK_TRIGGER',
|
||||
createValueClickAction(() => ({
|
||||
uiActions,
|
||||
}))
|
||||
);
|
||||
|
||||
uiActions.addTriggerAction(
|
||||
APPLY_FILTER_TRIGGER,
|
||||
uiActions.getAction(ACTION_GLOBAL_APPLY_FILTER)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue