set default for allowCreate and readonly for select (#2034)
fixes: #1939
This commit is contained in:
parent
ebeceefcbf
commit
6427a15d1b
2 changed files with 5 additions and 1 deletions
|
@ -30,7 +30,7 @@ export default function AddSamlConnect() {
|
|||
const id = "saml";
|
||||
|
||||
const form = useForm<DiscoveryIdentityProvider>({
|
||||
defaultValues: { alias: id },
|
||||
defaultValues: { alias: id, config: { allowCreate: "true" } },
|
||||
});
|
||||
const {
|
||||
handleSubmit,
|
||||
|
|
|
@ -156,6 +156,7 @@ const Fields = ({ readOnly }: DescriptorSettingsProps) => {
|
|||
}}
|
||||
selections={value}
|
||||
variant={SelectVariant.single}
|
||||
isDisabled={readOnly}
|
||||
>
|
||||
<SelectOption
|
||||
data-testid="persistent-option"
|
||||
|
@ -236,6 +237,7 @@ const Fields = ({ readOnly }: DescriptorSettingsProps) => {
|
|||
}}
|
||||
selections={value}
|
||||
variant={SelectVariant.single}
|
||||
isDisabled={readOnly}
|
||||
>
|
||||
<SelectOption
|
||||
data-testid="subjectNameId-option"
|
||||
|
@ -340,6 +342,7 @@ const Fields = ({ readOnly }: DescriptorSettingsProps) => {
|
|||
}}
|
||||
selections={value}
|
||||
variant={SelectVariant.single}
|
||||
isDisabled={readOnly}
|
||||
>
|
||||
<SelectOption value="RSA_SHA1" />
|
||||
<SelectOption value="RSA_SHA256" isPlaceholder />
|
||||
|
@ -378,6 +381,7 @@ const Fields = ({ readOnly }: DescriptorSettingsProps) => {
|
|||
}}
|
||||
selections={value}
|
||||
variant={SelectVariant.single}
|
||||
isDisabled={readOnly}
|
||||
>
|
||||
<SelectOption value="NONE" />
|
||||
<SelectOption value={t("keyID")} isPlaceholder />
|
||||
|
|
Loading…
Reference in a new issue