From 1bfaebf4aa1e50038416843fef1a4fb00a2d3f3a Mon Sep 17 00:00:00 2001 From: alex-slobodian Date: Tue, 21 May 2024 18:43:29 +0300 Subject: [PATCH] Add type onCreate --- .../certificate-create-by-cname/CertificateCreateByCname.tsx | 2 ++ .../certificate-create-by-custom/CertificateCreateByCustom.tsx | 2 ++ .../certificate-create-by-email/CertificateCreateByEmail.tsx | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/components/certificate-create-by-cname/CertificateCreateByCname.tsx b/src/components/certificate-create-by-cname/CertificateCreateByCname.tsx index bab1b7df..130397ba 100644 --- a/src/components/certificate-create-by-cname/CertificateCreateByCname.tsx +++ b/src/components/certificate-create-by-cname/CertificateCreateByCname.tsx @@ -16,6 +16,7 @@ export interface ICertificateCreateByCnameData { commonName: string; }; algorithm: CertificateAlgorithmProps; + type: CertificateType; } interface CertificateCreateByCnameProps { @@ -75,6 +76,7 @@ export const CertificateCreateByCname: React.FunctionComponent< commonName: cname, }, algorithm, + type, }) } title={ diff --git a/src/components/certificate-create-by-custom/CertificateCreateByCustom.tsx b/src/components/certificate-create-by-custom/CertificateCreateByCustom.tsx index a8b03606..708dd95e 100644 --- a/src/components/certificate-create-by-custom/CertificateCreateByCustom.tsx +++ b/src/components/certificate-create-by-custom/CertificateCreateByCustom.tsx @@ -20,6 +20,7 @@ export interface ICertificateCreateByCustomData { subject: CertificateSubjectProps; algorithm?: CertificateAlgorithmProps; extendedKeyUsageExtension: ICertificateKeyUsageExtensions[]; + type: CertificateType; } interface CertificateCreateByCustomProps { @@ -197,6 +198,7 @@ export const CertificateCreateByCustom: React.FunctionComponent< disabled={isCreateButtonDisabled} onClick={() => { const data: ICertificateCreateByCustomData = { + type, subject: { commonName: cname, emailAddress, diff --git a/src/components/certificate-create-by-email/CertificateCreateByEmail.tsx b/src/components/certificate-create-by-email/CertificateCreateByEmail.tsx index 96deb93c..1a6292f1 100644 --- a/src/components/certificate-create-by-email/CertificateCreateByEmail.tsx +++ b/src/components/certificate-create-by-email/CertificateCreateByEmail.tsx @@ -18,6 +18,7 @@ export interface ICertificateCreateByEmailData { commonName: string; }; algorithm: CertificateAlgorithmProps; + type: CertificateType; } interface CertificateCreateByEmailProps { @@ -99,6 +100,7 @@ export const CertificateCreateByEmail: React.FunctionComponent< emailAddress, }, algorithm, + type, }) } title={