New: Show all options when authentication modal is open

This commit is contained in:
Mark McDowall 2022-12-05 23:00:27 -08:00
parent 7f5769ab70
commit c7d6c0f452
1 changed files with 29 additions and 41 deletions

View File

@ -81,52 +81,40 @@ function AuthenticationRequiredModalContent(props) {
/> />
</FormGroup> </FormGroup>
{ <FormGroup>
authenticationEnabled ? <FormLabel>Authentication Required</FormLabel>
<FormGroup>
<FormLabel>Authentication Required</FormLabel>
<FormInputGroup <FormInputGroup
type={inputTypes.SELECT} type={inputTypes.SELECT}
name="authenticationRequired" name="authenticationRequired"
values={authenticationRequiredOptions} values={authenticationRequiredOptions}
helpText="Change which requests authentication is required for. Do not change unless you understand the risks." helpText="Change which requests authentication is required for. Do not change unless you understand the risks."
onChange={onInputChange} onChange={onInputChange}
{...authenticationRequired} {...authenticationRequired}
/> />
</FormGroup> : </FormGroup>
null
}
{ <FormGroup>
authenticationEnabled ? <FormLabel>Username</FormLabel>
<FormGroup>
<FormLabel>Username</FormLabel>
<FormInputGroup <FormInputGroup
type={inputTypes.TEXT} type={inputTypes.TEXT}
name="username" name="username"
onChange={onInputChange} onChange={onInputChange}
{...username} {...username}
/> />
</FormGroup> : </FormGroup>
null
}
{ <FormGroup>
authenticationEnabled ? <FormLabel>Password</FormLabel>
<FormGroup>
<FormLabel>Password</FormLabel>
<FormInputGroup <FormInputGroup
type={inputTypes.PASSWORD} type={inputTypes.PASSWORD}
name="password" name="password"
onChange={onInputChange} onChange={onInputChange}
{...password} {...password}
/> />
</FormGroup> : </FormGroup>
null
}
</div> : </div> :
null null
} }