From 2c6b55a9480b9ac38e4ef4dd6a54bddd5f17b920 Mon Sep 17 00:00:00 2001 From: Montse Ortega Date: Fri, 11 Apr 2025 10:35:22 +0200 Subject: [PATCH] Selecting CNV - not able to deselect it using UI --- .../clusterConfiguration/operators/CnvCheckbox.tsx | 2 ++ .../lib/ocm/components/clusterWizard/OperatorsStep.tsx | 6 ------ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/libs/ui-lib/lib/ocm/components/clusterConfiguration/operators/CnvCheckbox.tsx b/libs/ui-lib/lib/ocm/components/clusterConfiguration/operators/CnvCheckbox.tsx index 123b189956..97072fbac7 100644 --- a/libs/ui-lib/lib/ocm/components/clusterConfiguration/operators/CnvCheckbox.tsx +++ b/libs/ui-lib/lib/ocm/components/clusterConfiguration/operators/CnvCheckbox.tsx @@ -79,6 +79,8 @@ const CnvCheckbox = ({ const fieldId = getFieldId(CNV_FIELD_NAME, 'input'); const selectOperatorsNeeded = (checked: boolean) => { if (featureSupportLevelData.isFeatureSupported('LSO')) setFieldValue('useLso', checked); + if (featureSupportLevelData.isFeatureSupported('MTV')) + setFieldValue('useMigrationToolkitforVirtualization', checked); }; return ( diff --git a/libs/ui-lib/lib/ocm/components/clusterWizard/OperatorsStep.tsx b/libs/ui-lib/lib/ocm/components/clusterWizard/OperatorsStep.tsx index 64b8423b0a..2d997def92 100644 --- a/libs/ui-lib/lib/ocm/components/clusterWizard/OperatorsStep.tsx +++ b/libs/ui-lib/lib/ocm/components/clusterWizard/OperatorsStep.tsx @@ -40,7 +40,6 @@ import { useFormikContext } from 'formik'; import NewFeatureSupportLevelBadge from '../../../common/components/newFeatureSupportLevels/NewFeatureSupportLevelBadge'; import { useNewFeatureSupportLevel } from '../../../common/components/newFeatureSupportLevels'; import { - getCnvDisabledWithMtvReason, getCnvIncompatibleWithLvmReason, getLvmIncompatibleWithCnvReason, getLvmsIncompatibleWithOdfReason, @@ -250,11 +249,6 @@ export const OperatorsStep = (props: ClusterOperatorProps) => { const lvmSupport = featureSupportLevelData.getFeatureSupportLevel('LVM'); disabledReason = getCnvIncompatibleWithLvmReason(values, lvmSupport); } - if (!disabledReason) { - if (featureSupportLevelData.isFeatureSupported('MTV')) { - disabledReason = getCnvDisabledWithMtvReason(values); - } - } } if (operatorKey === 'lvm') { if (!disabledReason) {