Skip to content

Commit

Permalink
Fix docs in trigger alerting UI (#75363)
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 authored Aug 19, 2020
1 parent 6c00cb2 commit de4b502
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions x-pack/plugins/triggers_actions_ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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}
/>
);
Expand Down Expand Up @@ -1409,7 +1409,7 @@ import { ActionsConnectorsContextProvider, ConnectorAddFlyout } from '../../../.
const [addFlyoutVisible, setAddFlyoutVisibility] = useState<boolean>(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: {},
Expand Down Expand Up @@ -1438,9 +1438,9 @@ const connector = {
<ActionsConnectorsContextProvider
value={{
http: http,
toastNotifications: toastNotifications,
toastNotifications: notifications.toasts,
actionTypeRegistry: triggers_actions_ui.actionTypeRegistry,
capabilities: capabilities,
capabilities: application.capabilities,
docLinks,
}}
>
Expand Down Expand Up @@ -1526,7 +1526,7 @@ import { ActionsConnectorsContextProvider, ConnectorEditFlyout } from '../../../
const [editFlyoutVisible, setEditFlyoutVisibility] = useState<boolean>(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
<EuiButton
Expand All @@ -1545,9 +1545,9 @@ const { http, triggers_actions_ui, toastNotifications, capabilities } = useKiban
<ActionsConnectorsContextProvider
value={{
http: http,
toastNotifications: toastNotifications,
toastNotifications: notifications.toasts,
actionTypeRegistry: triggers_actions_ui.actionTypeRegistry,
capabilities: capabilities,
capabilities: application.capabilities,
}}
>
<ConnectorEditFlyout
Expand Down

0 comments on commit de4b502

Please sign in to comment.