Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix docs in trigger alerting UI #75363

Merged
merged 1 commit into from
Aug 19, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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