Skip to content

Commit

Permalink
Enable Change button in Mass Change Hostname Modal when user add a va…
Browse files Browse the repository at this point in the history
…lue (#2563) (#2564)
  • Loading branch information
ammont82 authored Apr 23, 2024
1 parent eac2f42 commit 4a3e567
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,11 @@ const MassChangeHostnameForm = ({
</Stack>
</ModalBoxBody>
<ModalBoxFooter>
<Button key="submit" type={ButtonType.submit} isDisabled={isSubmitting || !isValid}>
<Button
key="submit"
type={ButtonType.submit}
isDisabled={isSubmitting || !isValid || !hostnameInputRef.current?.value.trim()}
>
{t('ai:Change')}
</Button>
<Button onClick={onClose} variant={ButtonVariant.secondary} isDisabled={isSubmitting}>
Expand Down

0 comments on commit 4a3e567

Please sign in to comment.