From d74e9288892d923f38338689a4c363a1bba3374e Mon Sep 17 00:00:00 2001 From: Aviv Turgeman Date: Wed, 19 Mar 2025 13:51:56 +0200 Subject: [PATCH] Present template naming fields only for vsphere provider Signed-off-by: Aviv Turgeman --- .../SettingsSection/SettingsSection.tsx | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/packages/forklift-console-plugin/src/modules/Plans/views/details/components/SettingsSection/SettingsSection.tsx b/packages/forklift-console-plugin/src/modules/Plans/views/details/components/SettingsSection/SettingsSection.tsx index b6cccc0d4..aaca5b9c0 100644 --- a/packages/forklift-console-plugin/src/modules/Plans/views/details/components/SettingsSection/SettingsSection.tsx +++ b/packages/forklift-console-plugin/src/modules/Plans/views/details/components/SettingsSection/SettingsSection.tsx @@ -46,6 +46,7 @@ export const SettingsSectionInternal: React.FC = ({ obj, p namespace: obj?.spec?.provider?.destination?.namespace, }); + const isVsphere = sourceProvider?.spec?.type === 'vsphere'; return ( <> = ({ obj, p )} - {['vsphere'].includes(sourceProvider?.spec?.type) && ( + {isVsphere && ( )} - {['vsphere'].includes(sourceProvider?.spec?.type) && ( + {isVsphere && ( )} - {['vsphere'].includes(sourceProvider?.spec?.type) && ( - - )} + {isVsphere && } - {['vsphere'].includes(sourceProvider?.spec?.type) && ( - - )} + {isVsphere && } - + {isVsphere && } - + {isVsphere && ( + + )} - + {isVsphere && ( + + )} );