From 10f2669827d7ae82a4c476337915a53717041f6f Mon Sep 17 00:00:00 2001 From: regexowl Date: Mon, 7 Oct 2024 14:28:05 +0200 Subject: [PATCH] Wizard: Move VMware radios into VMware checkbox This moves the VMware radios into the body of VMware checkbox, following PatternFly's pattern of parent and child checkboxes / form elements: https://www.patternfly.org/components/forms/checkbox#controlled --- .../steps/ImageOutput/TargetEnvironment.tsx | 186 +++++++++--------- 1 file changed, 93 insertions(+), 93 deletions(-) diff --git a/src/Components/CreateImageWizard/steps/ImageOutput/TargetEnvironment.tsx b/src/Components/CreateImageWizard/steps/ImageOutput/TargetEnvironment.tsx index 5cb66d76..222254c9 100644 --- a/src/Components/CreateImageWizard/steps/ImageOutput/TargetEnvironment.tsx +++ b/src/Components/CreateImageWizard/steps/ImageOutput/TargetEnvironment.tsx @@ -203,103 +203,103 @@ const TargetEnvironment = () => { id="checkbox-vmware" name="VMware" data-testid="checkbox-vmware" - /> - - - {supportedEnvironments?.includes('vsphere-ova') && ( - - Open virtualization format (.ova) - - - An OVA file is a virtual appliance used by - virtualization platforms such as VMware vSphere. It - is a package that contains files used to describe a - virtual machine, which includes a VMDK image, OVF - descriptor file and a manifest file. - - - } - > - - - - } - onChange={() => { - handleToggleEnvironment('vsphere-ova'); - handleToggleEnvironment('vsphere'); - }} - isChecked={environments.includes('vsphere-ova')} - isDisabled={ - !( - environments.includes('vsphere') || - environments.includes('vsphere-ova') - ) - } - /> - )} - - Virtual disk (.vmdk) - - - A VMDK file is a virtual disk that stores the contents - of a virtual machine. This disk has to be imported - into vSphere using govc import.vmdk, use the OVA - version when using the vSphere UI. - - + {supportedEnvironments?.includes('vsphere-ova') && ( + + Open virtualization format (.ova) + + + An OVA file is a virtual appliance used by + virtualization platforms such as VMware + vSphere. It is a package that contains files + used to describe a virtual machine, which + includes a VMDK image, OVF descriptor file and + a manifest file. + + + } + > + + + + } + onChange={() => { + handleToggleEnvironment('vsphere-ova'); + handleToggleEnvironment('vsphere'); + }} + isChecked={environments.includes('vsphere-ova')} + isDisabled={ + !( + environments.includes('vsphere') || + environments.includes('vsphere-ova') + ) + } + /> + )} + + Virtual disk (.vmdk) + + + A VMDK file is a virtual disk that stores the + contents of a virtual machine. This disk has to + be imported into vSphere using govc import.vmdk, + use the OVA version when using the vSphere UI. + + + } + > + + + } - > - - + onChange={() => { + handleToggleEnvironment('vsphere-ova'); + handleToggleEnvironment('vsphere'); + }} + isChecked={environments.includes('vsphere')} + isDisabled={ + !( + environments.includes('vsphere') || + environments.includes('vsphere-ova') + ) + } + /> } - onChange={() => { - handleToggleEnvironment('vsphere-ova'); - handleToggleEnvironment('vsphere'); - }} - isChecked={environments.includes('vsphere')} - isDisabled={ - !( - environments.includes('vsphere') || - environments.includes('vsphere-ova') - ) - } />