From 399126909c095171f88bae897aac7b23972d164b Mon Sep 17 00:00:00 2001 From: Michal Gold Date: Fri, 21 Mar 2025 15:29:29 +0200 Subject: [PATCH] Wizard: Show "Strong" label only for Azure when password meets criteria MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently, we only want to display the "Strong" label when the password meets the required strength conditions and only if it is Azure target. This change ensures that the label remains hidden for non-Azure cases. Let’s just disable it for now until we can decide on further adjustments. --- .../CreateImageWizard/utilities/useValidation.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Components/CreateImageWizard/utilities/useValidation.tsx b/src/Components/CreateImageWizard/utilities/useValidation.tsx index 143058fd..dbf13f46 100644 --- a/src/Components/CreateImageWizard/utilities/useValidation.tsx +++ b/src/Components/CreateImageWizard/utilities/useValidation.tsx @@ -518,11 +518,7 @@ const getStrength = ( rulesCount: number, isAzure: boolean ): PasswordValidationResult['strength'] => { - const isValidStrength = isAzure - ? strCount >= 6 && rulesCount >= 3 - : strCount >= 6; - - return isValidStrength + return isAzure && strCount >= 6 && rulesCount >= 3 ? { variant: 'success', icon: , text: 'Strong' } : { variant: 'default', icon: null, text: '' }; };