From de4b502cb31855b2c9c062ae97f99228138af27e Mon Sep 17 00:00:00 2001 From: Shahzad Date: Wed, 19 Aug 2020 09:13:40 +0200 Subject: [PATCH] Fix docs in trigger alerting UI (#75363) --- x-pack/plugins/triggers_actions_ui/README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/x-pack/plugins/triggers_actions_ui/README.md b/x-pack/plugins/triggers_actions_ui/README.md index b8e765c9ea635..5a0a0c3219d7e 100644 --- a/x-pack/plugins/triggers_actions_ui/README.md +++ b/x-pack/plugins/triggers_actions_ui/README.md @@ -1265,7 +1265,7 @@ Then this dependencies will be used to embed Actions form or register your own a ]; export const ComponentWithActionsForm: () => { - const { http, triggers_actions_ui, toastNotifications } = useKibana().services; + const { http, triggers_actions_ui, notifications } = useKibana().services; const actionTypeRegistry = triggers_actions_ui.actionTypeRegistry; const initialAlert = ({ name: 'test', @@ -1307,7 +1307,7 @@ Then this dependencies will be used to embed Actions form or register your own a actionTypeRegistry={actionTypeRegistry} defaultActionMessage={'Alert [{{ctx.metadata.name}}] has exceeded the threshold'} actionTypes={ALOWED_BY_PLUGIN_ACTION_TYPES} - toastNotifications={toastNotifications} + toastNotifications={notifications.toasts} consumer={initialAlert.consumer} /> ); @@ -1409,7 +1409,7 @@ import { ActionsConnectorsContextProvider, ConnectorAddFlyout } from '../../../. const [addFlyoutVisible, setAddFlyoutVisibility] = useState(false); // load required dependancied -const { http, triggers_actions_ui, toastNotifications, capabilities, docLinks } = useKibana().services; +const { http, triggers_actions_ui, notifications, application, docLinks } = useKibana().services; const connector = { secrets: {}, @@ -1438,9 +1438,9 @@ const connector = { @@ -1526,7 +1526,7 @@ import { ActionsConnectorsContextProvider, ConnectorEditFlyout } from '../../../ const [editFlyoutVisible, setEditFlyoutVisibility] = useState(false); // load required dependancied -const { http, triggers_actions_ui, toastNotifications, capabilities } = useKibana().services; +const { http, triggers_actions_ui, notifications, application } = useKibana().services; // UI control item for open flyout