Changed cert to text-area (#4338)

This commit is contained in:
Erik Jan de Wit 2023-02-07 12:30:31 +01:00 committed by GitHub
parent 038122ca12
commit 1a7d229fd0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,9 +13,10 @@ import { Controller, useFormContext, useWatch } from "react-hook-form";
import { useTranslation } from "react-i18next";
import { HelpItem } from "../../components/help-enabler/HelpItem";
import { KeycloakTextArea } from "../../components/keycloak-text-area/KeycloakTextArea";
import { KeycloakTextInput } from "../../components/keycloak-text-input/KeycloakTextInput";
import { FormGroupField } from "../component/FormGroupField";
import { SwitchField } from "../component/SwitchField";
import { TextField } from "../component/TextField";
import "./discovery-settings.css";
@ -473,12 +474,14 @@ const Fields = ({ readOnly }: DescriptorSettingsProps) => {
isReadOnly={readOnly}
/>
{validateSignature === "true" && (
<TextField
field="config.signingCertificate"
label="validatingX509Certs"
<FormGroupField label="validatingX509Certs">
<KeycloakTextArea
id="validatingX509Certs"
data-testid="validatingX509Certs"
isReadOnly={readOnly}
/>
{...register("config.signingCertificate")}
></KeycloakTextArea>
</FormGroupField>
)}
<SwitchField
field="config.signSpMetadata"