UI cleanup for cert auth list header and list item descriptions (#27378)

This commit is contained in:
Gabriel Hernandez 2025-03-21 14:29:49 +00:00 committed by GitHub
parent 92dd9a7deb
commit 735328c1e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 1 deletions

View file

@ -12,4 +12,8 @@
display: flex;
gap: $pad-small;
}
&__add-button {
height: auto;
}
}

View file

@ -47,6 +47,16 @@ const Actions = ({ onEdit, onDelete }: IActionsProps) => {
);
};
const generateCertDetails = (certId: string) => {
if (certId.includes("ndes")) {
return "Microsoft Network Device Enrollment Service (NDES)";
} else if (certId.includes("digicert")) {
return "DigiCert";
}
return "Custom Simple Certificate Enrollment Protocol (SCEP)";
};
interface ICertAuthorityListItemProps {
cert: ICertAuthorityListData;
onClickEdit: () => void;
@ -63,7 +73,7 @@ const CertAuthorityListItem = ({
className={baseClass}
graphic="file-certificate"
title={cert.name}
details={cert.name}
details={generateCertDetails(cert.id)}
actions={<Actions onEdit={onClickEdit} onDelete={onClickDelete} />}
/>
);