feat: display SSH cert principals in expanded certificate details
This commit is contained in:
@@ -47,6 +47,7 @@ import {
|
||||
AlertDialogTitle,
|
||||
} from "@/components/ui/alert-dialog";
|
||||
import { useToast } from "@/hooks/use-toast";
|
||||
import { useOrg } from "@/contexts/OrgContext";
|
||||
import { api, SSHKey, SSHCertificate, ApiError, PrincipalOption, MyPrincipalsOrg, DeptCertPolicy } from "@/lib/api";
|
||||
import { formatDate as _formatDate } from "@/lib/date";
|
||||
|
||||
@@ -87,6 +88,7 @@ function CopyButton({ text }: { text: string }) {
|
||||
|
||||
export default function SSHKeysPage() {
|
||||
const { toast } = useToast();
|
||||
const { selectedOrgId } = useOrg();
|
||||
|
||||
// Key list state
|
||||
const [keys, setKeys] = useState<SSHKey[]>([]);
|
||||
@@ -379,6 +381,7 @@ export default function SSHKeysPage() {
|
||||
principals.length > 0 ? principals : undefined,
|
||||
certType,
|
||||
parsedExpiry,
|
||||
selectedOrgId ?? undefined,
|
||||
);
|
||||
setCertResult(result.certificate);
|
||||
fetchCerts(); // refresh certs list
|
||||
|
||||
Reference in New Issue
Block a user