Skip to content
Snippets Groups Projects
Commit d089e9e0 authored by 한동현's avatar 한동현
Browse files

feat: 인증서 목록 페이지 시스템 인증서 처리 추가

parent 6ae96f89
No related branches found
No related tags found
No related merge requests found
...@@ -144,7 +144,11 @@ export default function CertificateList() { ...@@ -144,7 +144,11 @@ export default function CertificateList() {
<TableRow key={certificate.id}> <TableRow key={certificate.id}>
<TableCell> <TableCell>
<HoverCard> <HoverCard>
<HoverCardTrigger>{certificate.domain}</HoverCardTrigger> <HoverCardTrigger>
<span className={certificate.projectId !== selectedProject?.id ? 'italic' : ''}>
{certificate.domain}
</span>
</HoverCardTrigger>
<HoverCardContent className="w-80 whitespace-normal"> <HoverCardContent className="w-80 whitespace-normal">
<div className="flex justify-between space-x-4"> <div className="flex justify-between space-x-4">
<div className="space-y-1"> <div className="space-y-1">
...@@ -188,7 +192,7 @@ export default function CertificateList() { ...@@ -188,7 +192,7 @@ export default function CertificateList() {
<TableCell> <TableCell>
<div className="flex justify-center items-center gap-2"> <div className="flex justify-center items-center gap-2">
<Button <Button
disabled={selectedProject?.role !== 'admin'} disabled={selectedProject?.role !== 'admin' || certificate.projectId !== selectedProject.id}
variant="secondary" variant="secondary"
className="size-8" className="size-8"
onClick={() => setSelectedCertificate(certificate)} onClick={() => setSelectedCertificate(certificate)}
......
...@@ -2,6 +2,7 @@ export interface Certificate { ...@@ -2,6 +2,7 @@ export interface Certificate {
id: number; id: number;
email: string; email: string;
domain: string; domain: string;
projectId: string;
createdAt: string; createdAt: string;
updatedAt: string; updatedAt: string;
expiresAt: string; expiresAt: string;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment