diff --git a/src/utils/components/DiskModal/components/StorageProfileSettings/AccessMode.tsx b/src/utils/components/DiskModal/components/StorageProfileSettings/AccessMode.tsx index 050f65d00..12092873e 100644 --- a/src/utils/components/DiskModal/components/StorageProfileSettings/AccessMode.tsx +++ b/src/utils/components/DiskModal/components/StorageProfileSettings/AccessMode.tsx @@ -17,8 +17,7 @@ const AccessMode: FC = () => { const { control, setValue, watch } = useFormContext(); - const { accessMode, storageClassProvisioner, storageProfileSettingsApplied, volumeMode } = - watch(); + const { accessMode, storageClassProvisioner, volumeMode } = watch(); const allowedAccessModes = useMemo(() => { return getAccessModeForProvisioner(storageClassProvisioner, volumeMode as VOLUME_MODES); @@ -30,10 +29,6 @@ const AccessMode: FC = () => { } }, [accessMode, allowedAccessModes, setValue]); - if (storageProfileSettingsApplied) { - return null; - } - return ( {ACCESS_MODE_RADIO_OPTIONS.map(({ label, value }) => ( diff --git a/src/utils/components/DiskModal/components/StorageProfileSettings/ApplyStorageProfileSettings.tsx b/src/utils/components/DiskModal/components/StorageProfileSettings/ApplyStorageProfileSettings.tsx index 59b88e1dc..817dd59b2 100644 --- a/src/utils/components/DiskModal/components/StorageProfileSettings/ApplyStorageProfileSettings.tsx +++ b/src/utils/components/DiskModal/components/StorageProfileSettings/ApplyStorageProfileSettings.tsx @@ -48,17 +48,19 @@ const ApplyStorageProfileSettings: FC = () => { handleChange={handleApplyOptimizedSettingsChange} isChecked={storageProfileSettingsApplied} /> - - - - - - - - + {!storageProfileSettingsApplied && ( + + + + + + + + + )} ); }; diff --git a/src/utils/components/DiskModal/components/StorageProfileSettings/VolumeMode.tsx b/src/utils/components/DiskModal/components/StorageProfileSettings/VolumeMode.tsx index 4188e0c4e..b8021305a 100644 --- a/src/utils/components/DiskModal/components/StorageProfileSettings/VolumeMode.tsx +++ b/src/utils/components/DiskModal/components/StorageProfileSettings/VolumeMode.tsx @@ -18,8 +18,7 @@ const VolumeMode: FC = () => { const { control, setValue, watch } = useFormContext(); - const { accessMode, storageClassProvisioner, storageProfileSettingsApplied, volumeMode } = - watch(); + const { accessMode, storageClassProvisioner, volumeMode } = watch(); const allowedVolumeModes = useMemo( () => getVolumeModeForProvisioner(storageClassProvisioner, accessMode as ACCESS_MODES), @@ -32,10 +31,6 @@ const VolumeMode: FC = () => { } }, [allowedVolumeModes, volumeMode, setValue]); - if (storageProfileSettingsApplied) { - return null; - } - return ( {VOLUME_MODE_RADIO_OPTIONS.map(({ label, value }) => (