mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
Index pattern field editor - copy improvements (#96269)
* copy update * remove stray colon from copy
This commit is contained in:
parent
b066e9714d
commit
70b3b2bbc1
2 changed files with 15 additions and 6 deletions
|
@ -64,14 +64,14 @@ const geti18nTexts = (fieldsToDelete?: string[]) => {
|
|||
typeConfirm: i18n.translate(
|
||||
'indexPatternFieldEditor.deleteRuntimeField.confirmModal.typeConfirm',
|
||||
{
|
||||
defaultMessage: "Type 'REMOVE' to confirm",
|
||||
defaultMessage: 'Enter REMOVE to confirm',
|
||||
}
|
||||
),
|
||||
warningRemovingFields: i18n.translate(
|
||||
'indexPatternFieldEditor.deleteRuntimeField.confirmModal.warningRemovingFields',
|
||||
{
|
||||
defaultMessage:
|
||||
'Warning: Removing fields may break searches or visualizations that rely on this field.',
|
||||
'Removing fields can break searches and visualizations that rely on this field.',
|
||||
}
|
||||
),
|
||||
};
|
||||
|
|
|
@ -53,20 +53,29 @@ const geti18nTexts = (field?: Field) => {
|
|||
confirmButtonText: i18n.translate(
|
||||
'indexPatternFieldEditor.deleteRuntimeField.confirmationModal.saveButtonLabel',
|
||||
{
|
||||
defaultMessage: 'Save',
|
||||
defaultMessage: 'Save changes',
|
||||
}
|
||||
),
|
||||
warningChangingFields: i18n.translate(
|
||||
'indexPatternFieldEditor.deleteRuntimeField.confirmModal.warningChangingFields',
|
||||
{
|
||||
defaultMessage:
|
||||
'Warning: Changing name or type may break searches or visualizations that rely on this field.',
|
||||
'Changing name or type can break searches and visualizations that rely on this field.',
|
||||
}
|
||||
),
|
||||
typeConfirm: i18n.translate(
|
||||
'indexPatternFieldEditor.saveRuntimeField.confirmModal.typeConfirm',
|
||||
{
|
||||
defaultMessage: "Type 'CHANGE' to continue:",
|
||||
defaultMessage: 'Enter CHANGE to continue',
|
||||
}
|
||||
),
|
||||
titleConfirmChanges: i18n.translate(
|
||||
'indexPatternFieldEditor.saveRuntimeField.confirmModal.title',
|
||||
{
|
||||
defaultMessage: `Save changes to '{name}'`,
|
||||
values: {
|
||||
name: field?.name,
|
||||
},
|
||||
}
|
||||
),
|
||||
};
|
||||
|
@ -211,7 +220,7 @@ const FieldEditorFlyoutContentComponent = ({
|
|||
|
||||
const modal = isModalVisible ? (
|
||||
<EuiConfirmModal
|
||||
title={`Confirm changes to '${field?.name}'`}
|
||||
title={i18nTexts.titleConfirmChanges}
|
||||
data-test-subj="runtimeFieldSaveConfirmModal"
|
||||
cancelButtonText={i18nTexts.cancelButtonText}
|
||||
confirmButtonText={i18nTexts.confirmButtonText}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue