Skip to content

Commit

Permalink
feat(manager-components): disable update name button if no change (#1…
Browse files Browse the repository at this point in the history
…3808)

ref: 13807

Signed-off-by: Nicolas Pierre-charles <[email protected]>
  • Loading branch information
chipp972 authored Nov 20, 2024
1 parent a87fc13 commit 7ce27f3
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,13 @@ export const UpdateNameModal: React.FC<UpdateNameModalProps> = ({
)}
</OdsFormField>
<OdsButton
isDisabled={isLoading}
slot="actions"
variant={ODS_BUTTON_VARIANT.ghost}
{...handleClick(closeModal)}
label={cancelButtonLabel || t('updateModalCancelButton')}
/>
<OdsButton
isDisabled={isPatternError}
isDisabled={isPatternError || defaultValue === displayName || undefined}
slot="actions"
isLoading={isLoading}
{...handleClick(() => updateDisplayName(displayName))}
Expand Down

0 comments on commit 7ce27f3

Please sign in to comment.