From 9284dc7c39966ec97d5c2e18c019a8f1069e656d Mon Sep 17 00:00:00 2001 From: Sharon Gratch Date: Mon, 6 May 2024 18:14:19 +0300 Subject: [PATCH] Rephrase the text label for the preserveStaticIPs flag Reference: https://github.com/kubev2v/forklift-console-plugin/issues/1133 Signed-off-by: Sharon Gratch --- .../locales/en/plugin__forklift-console-plugin.json | 3 ++- .../components/PreserveStaticIPsDetailsItem.tsx | 2 +- .../EditPlanPreserveStaticIPs.tsx | 12 +++++++++--- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/packages/forklift-console-plugin/locales/en/plugin__forklift-console-plugin.json b/packages/forklift-console-plugin/locales/en/plugin__forklift-console-plugin.json index 07a98c2a1..c4a633657 100644 --- a/packages/forklift-console-plugin/locales/en/plugin__forklift-console-plugin.json +++ b/packages/forklift-console-plugin/locales/en/plugin__forklift-console-plugin.json @@ -112,6 +112,7 @@ "Details": "Details", "Determines the frequency with which the system checks the status of snapshot creation or removal during oVirt warm migration. The default value is 10 seconds.": "Determines the frequency with which the system checks the status of snapshot creation or removal during oVirt warm migration. The default value is 10 seconds.", "Disk Transfer": "Disk Transfer", + "Do not try to preserve the static IPs of VMs with Windows guest operating system from vSphere.": "Do not try to preserve the static IPs of VMs with Windows guest operating system from vSphere.", "Domain": "Domain", "Domain name": "Domain name", "Drag and drop a file or upload one": "Drag and drop a file or upload one", @@ -336,7 +337,7 @@ "Preserve CPU model": "Preserve CPU model", "Preserve static IPs": "Preserve static IPs", "Preserve the CPU model and flags the VM runs with in its oVirt cluster.": "Preserve the CPU model and flags the VM runs with in its oVirt cluster.", - "Preserve the static IPs that the VM runs with in vSphere provider's environment.": "Preserve the static IPs that the VM runs with in vSphere provider's environment.", + "Preserve the static IPs of VMs with Windows guest operating system from vSphere.": "Preserve the static IPs of VMs with Windows guest operating system from vSphere.", "Product": "Product", "Project": "Project", "Project ID": "Project ID", diff --git a/packages/forklift-console-plugin/src/modules/Plans/views/details/components/SettingsSection/components/PreserveStaticIPsDetailsItem.tsx b/packages/forklift-console-plugin/src/modules/Plans/views/details/components/SettingsSection/components/PreserveStaticIPsDetailsItem.tsx index 5c9f9b985..33bd22e83 100644 --- a/packages/forklift-console-plugin/src/modules/Plans/views/details/components/SettingsSection/components/PreserveStaticIPsDetailsItem.tsx +++ b/packages/forklift-console-plugin/src/modules/Plans/views/details/components/SettingsSection/components/PreserveStaticIPsDetailsItem.tsx @@ -18,7 +18,7 @@ export const PreserveStaticIPsDetailsItem: React.FC = ({ const { showModal } = useModal(); const defaultHelpContent = t( - `Preserve the static IPs that the VM runs with in vSphere provider's environment.`, + `Preserve the static IPs of VMs with Windows guest operating system from vSphere.`, ); const trueLabel = ( diff --git a/packages/forklift-console-plugin/src/modules/Plans/views/details/components/SettingsSection/modals/EditPlanPreserveStaticIPs/EditPlanPreserveStaticIPs.tsx b/packages/forklift-console-plugin/src/modules/Plans/views/details/components/SettingsSection/modals/EditPlanPreserveStaticIPs/EditPlanPreserveStaticIPs.tsx index ef50e76b3..e0dad4b8b 100644 --- a/packages/forklift-console-plugin/src/modules/Plans/views/details/components/SettingsSection/modals/EditPlanPreserveStaticIPs/EditPlanPreserveStaticIPs.tsx +++ b/packages/forklift-console-plugin/src/modules/Plans/views/details/components/SettingsSection/modals/EditPlanPreserveStaticIPs/EditPlanPreserveStaticIPs.tsx @@ -38,6 +38,8 @@ interface SwitchRendererProps { } const PreserveStaticIPsInputFactory: () => ModalInputComponentType = () => { + const { t } = useForkliftTranslation(); + const SwitchRenderer: React.FC = ({ value, onChange }) => { const onChangeInternal = (v) => { onChange(v ? 'true' : 'false'); @@ -46,8 +48,12 @@ const PreserveStaticIPsInputFactory: () => ModalInputComponentType = () => { return ( @@ -68,7 +74,7 @@ const EditPlanPreserveStaticIPs_: React.FC = (pr label={props?.label || t('Whether to preserve the static IPs')} model={PlanModel} onConfirmHook={onConfirm} - body={t(`Preserve the static IPs that the VM runs with in vSphere provider's environment.`)} + body={t(`Preserve the static IPs of VMs with Windows guest operating system from vSphere.`)} InputComponent={PreserveStaticIPsInputFactory()} /> );