mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
parent
e251310000
commit
498abb4152
164 changed files with 897 additions and 5367 deletions
|
@ -95,7 +95,8 @@ const ActionsExplorer = ({ uiActionsApi, openModal }: Props) => {
|
|||
);
|
||||
},
|
||||
});
|
||||
uiActionsApi.addTriggerAction(HELLO_WORLD_TRIGGER_ID, dynamicAction);
|
||||
uiActionsApi.registerAction(dynamicAction);
|
||||
uiActionsApi.attachAction(HELLO_WORLD_TRIGGER_ID, dynamicAction);
|
||||
setConfirmationText(
|
||||
`You've successfully added a new action: ${dynamicAction.getDisplayName(
|
||||
{}
|
||||
|
|
|
@ -79,21 +79,21 @@ export class UiActionsExplorerPlugin implements Plugin<void, void, {}, StartDeps
|
|||
|
||||
const startServices = core.getStartServices();
|
||||
|
||||
deps.uiActions.addTriggerAction(
|
||||
deps.uiActions.attachAction(
|
||||
USER_TRIGGER,
|
||||
createPhoneUserAction(async () => (await startServices)[1].uiActions)
|
||||
);
|
||||
deps.uiActions.addTriggerAction(
|
||||
deps.uiActions.attachAction(
|
||||
USER_TRIGGER,
|
||||
createEditUserAction(async () => (await startServices)[0].overlays.openModal)
|
||||
);
|
||||
|
||||
deps.uiActions.addTriggerAction(COUNTRY_TRIGGER, viewInMapsAction);
|
||||
deps.uiActions.addTriggerAction(COUNTRY_TRIGGER, lookUpWeatherAction);
|
||||
deps.uiActions.addTriggerAction(COUNTRY_TRIGGER, showcasePluggability);
|
||||
deps.uiActions.addTriggerAction(PHONE_TRIGGER, makePhoneCallAction);
|
||||
deps.uiActions.addTriggerAction(PHONE_TRIGGER, showcasePluggability);
|
||||
deps.uiActions.addTriggerAction(USER_TRIGGER, showcasePluggability);
|
||||
deps.uiActions.attachAction(COUNTRY_TRIGGER, viewInMapsAction);
|
||||
deps.uiActions.attachAction(COUNTRY_TRIGGER, lookUpWeatherAction);
|
||||
deps.uiActions.attachAction(COUNTRY_TRIGGER, showcasePluggability);
|
||||
deps.uiActions.attachAction(PHONE_TRIGGER, makePhoneCallAction);
|
||||
deps.uiActions.attachAction(PHONE_TRIGGER, showcasePluggability);
|
||||
deps.uiActions.attachAction(USER_TRIGGER, showcasePluggability);
|
||||
|
||||
core.application.register({
|
||||
id: 'uiActionsExplorer',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue