From 2e7e93002c224f43d15652e0dd4ec758a025e014 Mon Sep 17 00:00:00 2001 From: Alison Goryachev Date: Mon, 22 Mar 2021 21:08:17 -0400 Subject: [PATCH] fix i18n --- .../steps/step_logistics/step_logistics.tsx | 3 ++- .../step_logistics/system_indices_overwritten_callout.tsx | 8 +++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/x-pack/plugins/snapshot_restore/public/application/components/restore_snapshot_form/steps/step_logistics/step_logistics.tsx b/x-pack/plugins/snapshot_restore/public/application/components/restore_snapshot_form/steps/step_logistics/step_logistics.tsx index 99e4150579397..91bb3cfdf0c37 100644 --- a/x-pack/plugins/snapshot_restore/public/application/components/restore_snapshot_form/steps/step_logistics/step_logistics.tsx +++ b/x-pack/plugins/snapshot_restore/public/application/components/restore_snapshot_form/steps/step_logistics/step_logistics.tsx @@ -575,8 +575,9 @@ export const RestoreSnapshotStepLogistics: React.FunctionComponent = templates with the same name. Also restores persistent settings and all system indices." /> - {/* Only display callout if include global state is enabled and the snapshot was created by ES 7.12.0+ + {/* Only display callout if include_global_state is enabled and the snapshot was created by ES 7.12+ * Note: Once we support features states in the UI, we will also need to add a check here for that + * See https://github.com/elastic/kibana/issues/95128 more details */} {includeGlobalState && semverGt(version, '7.12.0') && ( <> diff --git a/x-pack/plugins/snapshot_restore/public/application/components/restore_snapshot_form/steps/step_logistics/system_indices_overwritten_callout.tsx b/x-pack/plugins/snapshot_restore/public/application/components/restore_snapshot_form/steps/step_logistics/system_indices_overwritten_callout.tsx index 237d5fe42f85d..62a74677c5023 100644 --- a/x-pack/plugins/snapshot_restore/public/application/components/restore_snapshot_form/steps/step_logistics/system_indices_overwritten_callout.tsx +++ b/x-pack/plugins/snapshot_restore/public/application/components/restore_snapshot_form/steps/step_logistics/system_indices_overwritten_callout.tsx @@ -28,15 +28,13 @@ export const SystemIndicesOverwrittenCallOut: FunctionComponent = () => { size="s" > include_global_state, - booleanValue: false, learnMoreLink: ( {i18n.translate( - 'xpack.snapshotRestore.restoreForm.dataStreamsWarningCallOut.body.learnMoreLink', + 'xpack.snapshotRestore.restoreForm.stepLogistics.systemIndicesCallOut.learnMoreLink', { defaultMessage: 'Learn more' } )}