Browse Source

Update passwordGenerator disabled

pull/277/head
Tilen Komel 2 years ago
parent
commit
c4342f1a2b
  1. 2
      src/components/UI/Generator.tsx

2
src/components/UI/Generator.tsx

@ -64,6 +64,7 @@ const Generator = React.forwardRef<HTMLInputElement, GeneratorProps>(
<Select <Select
value={devicePSKBitCount?.toString()} value={devicePSKBitCount?.toString()}
onValueChange={(e) => selectChange(e)} onValueChange={(e) => selectChange(e)}
disabled={disabled}
> >
<SelectTrigger className="!max-w-max"> <SelectTrigger className="!max-w-max">
<SelectValue /> <SelectValue />
@ -80,6 +81,7 @@ const Generator = React.forwardRef<HTMLInputElement, GeneratorProps>(
type="button" type="button"
variant="success" variant="success"
onClick={buttonClick} onClick={buttonClick}
disabled={disabled}
{...props} {...props}
> >
{buttonText} {buttonText}

Loading…
Cancel
Save