-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'backport/7.x/pr-62999' of github.com:parkiino/kibana in…
…to backport/7.x/pr-62999
- Loading branch information
Showing
22 changed files
with
685 additions
and
1,006 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
.../ingest_manager/sections/agent_config/create_datasource_page/components/confirm_modal.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import React from 'react'; | ||
import { EuiCallOut, EuiOverlayMask, EuiConfirmModal, EuiSpacer } from '@elastic/eui'; | ||
import { FormattedMessage } from '@kbn/i18n/react'; | ||
import { i18n } from '@kbn/i18n'; | ||
import { AgentConfig } from '../../../../types'; | ||
|
||
export const ConfirmCreateDatasourceModal: React.FunctionComponent<{ | ||
onConfirm: () => void; | ||
onCancel: () => void; | ||
agentCount: number; | ||
agentConfig: AgentConfig; | ||
}> = ({ onConfirm, onCancel, agentCount, agentConfig }) => { | ||
return ( | ||
<EuiOverlayMask> | ||
<EuiConfirmModal | ||
title={ | ||
<FormattedMessage | ||
id="xpack.ingestManager.createDatasource.confirmModalTitle" | ||
defaultMessage="Save and deploy changes" | ||
/> | ||
} | ||
onCancel={onCancel} | ||
onConfirm={onConfirm} | ||
cancelButtonText={ | ||
<FormattedMessage | ||
id="xpack.ingestManager.deleteApiKeys.confirmModal.cancelButtonLabel" | ||
defaultMessage="Cancel" | ||
/> | ||
} | ||
confirmButtonText={ | ||
<FormattedMessage | ||
id="xpack.ingestManager.createDatasource.confirmModalConfirmButtonLabel" | ||
defaultMessage="Save and deploy changes" | ||
/> | ||
} | ||
buttonColor="primary" | ||
> | ||
<EuiCallOut | ||
iconType="iInCircle" | ||
title={i18n.translate('xpack.ingestManager.createDatasource.confirmModalCalloutTitle', { | ||
defaultMessage: | ||
'This action will update {agentCount, plural, one {# agent} other {# agents}}', | ||
values: { | ||
agentCount, | ||
}, | ||
})} | ||
> | ||
<FormattedMessage | ||
id="xpack.ingestManager.createDatasource.confirmModalCalloutDescription" | ||
defaultMessage="Fleet has detected that the selected agent configuration, {configName}, is already in use by | ||
some of your agents. As a result of this action, Fleet will deploy updates to all agents | ||
that use this configuration." | ||
values={{ | ||
configName: <b>{agentConfig.name}</b>, | ||
}} | ||
/> | ||
</EuiCallOut> | ||
<EuiSpacer size="l" /> | ||
<FormattedMessage | ||
id="xpack.ingestManager.createDatasource.confirmModalDescription" | ||
defaultMessage="This action can not be undone. Are you sure you wish to continue?" | ||
/> | ||
</EuiConfirmModal> | ||
</EuiOverlayMask> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.