From d678ce2b7270446f06b7ba6639f4ba9e773cd773 Mon Sep 17 00:00:00 2001 From: Nicolas Pierre-charles Date: Thu, 17 Oct 2024 11:08:27 +0200 Subject: [PATCH] feat(hpc-vmware-managed-vcd): add pcc-migration condition ref: MANAGER-15398 Signed-off-by: Nicolas Pierre-charles --- .../app/dedicatedCloud/details/dedicatedCloud.routing.js | 9 ++++++--- .../details/managed-baremetal.routing.js | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/packages/manager/apps/dedicated/client/app/dedicatedCloud/details/dedicatedCloud.routing.js b/packages/manager/apps/dedicated/client/app/dedicatedCloud/details/dedicatedCloud.routing.js index 4e525e7265d2..1e25c40a752e 100644 --- a/packages/manager/apps/dedicated/client/app/dedicatedCloud/details/dedicatedCloud.routing.js +++ b/packages/manager/apps/dedicated/client/app/dedicatedCloud/details/dedicatedCloud.routing.js @@ -95,9 +95,12 @@ export default /* @ngInject */ ($stateProvider) => { managedVCDAvailability: /* @ngInject */ (ovhFeatureFlipping) => ovhFeatureFlipping - .checkFeatureAvailability('hpc-vmware-managed-vcd') - .then((featureAvailability) => - featureAvailability.isFeatureAvailable('hpc-vmware-managed-vcd'), + .checkFeatureAvailability(['hpc-vmware-managed-vcd', 'pcc-migration']) + .then( + (featureAvailability) => + featureAvailability.isFeatureAvailable( + 'hpc-vmware-managed-vcd', + ) && featureAvailability.isFeatureAvailable('pcc-migration'), ), dedicatedCloudServiceInfos: /* @ngInject */ ( diff --git a/packages/manager/apps/dedicated/client/app/managedBaremetal/details/managed-baremetal.routing.js b/packages/manager/apps/dedicated/client/app/managedBaremetal/details/managed-baremetal.routing.js index 335ae4aa1a43..69bb55e5ccec 100644 --- a/packages/manager/apps/dedicated/client/app/managedBaremetal/details/managed-baremetal.routing.js +++ b/packages/manager/apps/dedicated/client/app/managedBaremetal/details/managed-baremetal.routing.js @@ -93,9 +93,12 @@ export default /* @ngInject */ ($stateProvider) => { managedVCDAvailability: /* @ngInject */ (ovhFeatureFlipping) => ovhFeatureFlipping - .checkFeatureAvailability('hpc-vmware-managed-vcd') - .then((featureAvailability) => - featureAvailability.isFeatureAvailable('hpc-vmware-managed-vcd'), + .checkFeatureAvailability(['hpc-vmware-managed-vcd', 'pcc-migration']) + .then( + (featureAvailability) => + featureAvailability.isFeatureAvailable( + 'hpc-vmware-managed-vcd', + ) && featureAvailability.isFeatureAvailable('pcc-migration'), ), dedicatedCloudServiceInfos: /* @ngInject */ (