[Index Management] Add tech preview badge for DSL (#167801)

This commit is contained in:
Alison Goryachev 2023-10-02 20:41:36 -04:00 committed by GitHub
parent a36a2fcbca
commit 45725d142f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 2 deletions

View file

@ -131,7 +131,7 @@ export const DataStreamTable: React.FunctionComponent<Props> = ({
<EuiToolTip
content={i18n.translate('xpack.idxMgmt.dataStreamList.table.dataRetentionColumnTooltip', {
defaultMessage:
'Data will be be kept at least this long before it is automatically deleted. Only applies to data streams managed by a data stream lifecycle. This value might not apply to all data if the data stream also has an index lifecycle policy.',
'[Technical preview] Data will be kept at least this long before it is automatically deleted. Only applies to data streams managed by a data stream lifecycle. This value might not apply to all data if the data stream also has an index lifecycle policy.',
})}
>
<span>

View file

@ -17,6 +17,7 @@ import {
EuiSpacer,
EuiLink,
EuiText,
EuiBadge,
} from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import { FormattedMessage } from '@kbn/i18n-react';
@ -232,7 +233,17 @@ export const EditDataRetentionModal: React.FunctionComponent<Props> = ({
<FormattedMessage
id="xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.modalTitleText"
defaultMessage="Edit data retention"
/>
/>{' '}
<EuiBadge color="hollow">
<EuiText size="xs">
{i18n.translate(
'xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.techPreviewLabel',
{
defaultMessage: 'Technical preview',
}
)}
</EuiText>
</EuiBadge>
</EuiModalHeaderTitle>
</EuiModalHeader>