Skip to content

Commit

Permalink
[8.13] [Search] Make index name to delete bold and red (#178243) (#17…
Browse files Browse the repository at this point in the history
…8387)

# Backport

This will backport the following commits from `main` to `8.13`:
- [[Search] Make index name to delete bold and red
(#178243)](#178243)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Tim
Grein","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-03-11T14:12:45Z","message":"[Search]
Make index name to delete bold and red
(#178243)","sha":"03ce083cb14cac9122b7e4a96c2a5bf4865d1158","branchLabelMapping":{"^v8.14.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:EnterpriseSearch","v8.13.0","v8.14.0"],"title":"[Search]
Make index name to delete bold and
red","number":178243,"url":"https://github.com/elastic/kibana/pull/178243","mergeCommit":{"message":"[Search]
Make index name to delete bold and red
(#178243)","sha":"03ce083cb14cac9122b7e4a96c2a5bf4865d1158"}},"sourceBranch":"main","suggestedTargetBranches":["8.13"],"targetPullRequestStates":[{"branch":"8.13","label":"v8.13.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.14.0","branchLabelMappingKey":"^v8.14.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/178243","number":178243,"mergeCommit":{"message":"[Search]
Make index name to delete bold and red
(#178243)","sha":"03ce083cb14cac9122b7e4a96c2a5bf4865d1158"}}]}]
BACKPORT-->

Co-authored-by: Tim Grein <[email protected]>
  • Loading branch information
kibanamachine and timgrein authored Mar 11, 2024
1 parent 19dbbaa commit 8d2950c
Showing 1 changed file with 16 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@ import {
EuiForm,
EuiFormRow,
EuiSpacer,
EuiText,
EuiTextColor,
} from '@elastic/eui';

import { i18n } from '@kbn/i18n';
import { FormattedMessage } from '@kbn/i18n-react';

import { ingestionMethodToText } from '../../utils/indices';

Expand Down Expand Up @@ -112,15 +115,19 @@ export const DeleteIndexModal: React.FC = () => {
<EuiSpacer />
</>
)}
<p>
{i18n.translate(
'xpack.enterpriseSearch.content.searchIndices.deleteModal.syncsWarning.indexNameDescription',
{
defaultMessage: 'This action cannot be undone. Please type {indexName} to confirm.',
values: { indexName },
}
)}
</p>
<EuiText>
<FormattedMessage
id="xpack.enterpriseSearch.content.searchIndices.deleteModal.syncsWarning.indexNameDescription"
defaultMessage="This action cannot be undone. Please type {indexName} to confirm."
values={{
indexName: (
<strong>
<EuiTextColor color="danger">{indexName}</EuiTextColor>
</strong>
),
}}
/>
</EuiText>
<EuiForm>
<EuiFormRow
label={i18n.translate(
Expand Down

0 comments on commit 8d2950c

Please sign in to comment.