feat: review comments addressed

This commit is contained in:
=
2025-05-30 17:53:22 +00:00
committed by Akhil Mohan
parent 5e3d4edec9
commit 09db9e340b
6 changed files with 30 additions and 19 deletions
@@ -65,7 +65,7 @@ export type TDeleteCertificateTemplateDTO = {
};
export type TCreateCertificateTemplateV2DTO = {
caId: string;
caName: string;
name: string;
commonName: string;
subjectAlternativeName: string;
@@ -77,7 +77,7 @@ export type TCreateCertificateTemplateV2DTO = {
export type TUpdateCertificateTemplateV2DTO = {
templateName: string;
caId?: string;
caName?: string;
name?: string;
commonName?: string;
subjectAlternativeName?: string;
@@ -130,7 +130,7 @@ export const PkiTemplateListPage = () => {
<THead>
<Tr>
<Th>Name</Th>
<Th>CA</Th>
<Th>Issuing CA</Th>
<Th className="w-64">Last Updated At</Th>
<Th />
</Tr>
@@ -1,4 +1,5 @@
import { Controller, useForm } from "react-hook-form";
import { faQuestionCircle } from "@fortawesome/free-regular-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { zodResolver } from "@hookform/resolvers/zod";
@@ -133,7 +134,7 @@ export const PkiTemplateForm = ({ certTemplate, handlePopUpToggle }: Props) => {
await updateCertTemplate({
templateName: certTemplate.name,
projectId: currentWorkspace.id,
caId: ca.id,
caName: ca.name,
name,
commonName,
subjectAlternativeName,
@@ -153,7 +154,7 @@ export const PkiTemplateForm = ({ certTemplate, handlePopUpToggle }: Props) => {
} else {
await createCertTemplate({
projectId: currentWorkspace.id,
caId: ca.id,
caName: ca.name,
name,
commonName,
subjectAlternativeName,