diff --git a/frontend/src/components/Table/Formatter/EventFormatter.tsx b/frontend/src/components/Table/Formatter/EventFormatter.tsx index c081858f..806f2200 100644 --- a/frontend/src/components/Table/Formatter/EventFormatter.tsx +++ b/frontend/src/components/Table/Formatter/EventFormatter.tsx @@ -1,4 +1,4 @@ -import { IconArrowsCross, IconBolt, IconBoltOff, IconDisc, IconLock, IconUser } from "@tabler/icons-react"; +import { IconArrowsCross, IconBolt, IconBoltOff, IconDisc, IconLock, IconShield, IconUser } from "@tabler/icons-react"; import type { AuditLog } from "src/api/backend"; import { DateTimeFormat, T } from "src/locale"; @@ -13,6 +13,8 @@ const getEventValue = (event: AuditLog) => { return event.meta?.domainNames?.join(", ") || "N/A"; case "stream": return event.meta?.incomingPort || "N/A"; + case "certificate": + return event.meta?.domainNames?.join(", ") || event.meta?.niceName || "N/A"; default: return `UNKNOWN EVENT TYPE: ${event.objectType}`; } @@ -51,6 +53,9 @@ const getIcon = (row: AuditLog) => { case "access-list": ico = ; break; + case "certificate": + ico = ; + break; } return ico; @@ -65,7 +70,7 @@ export function EventFormatter({ row }: Props) {
{getIcon(row)} - — {getEventValue(row)} +   — {getEventValue(row)}
{DateTimeFormat(row.createdOn)}
diff --git a/frontend/src/locale/lang/en.json b/frontend/src/locale/lang/en.json index eaf459e4..b3483e5a 100644 --- a/frontend/src/locale/lang/en.json +++ b/frontend/src/locale/lang/en.json @@ -142,6 +142,7 @@ "object.event.deleted": "Deleted {object}", "object.event.disabled": "Disabled {object}", "object.event.enabled": "Enabled {object}", + "object.event.renewed": "Renewed {object}", "object.event.updated": "Updated {object}", "offline": "Offline", "online": "Online", diff --git a/frontend/src/locale/src/en.json b/frontend/src/locale/src/en.json index 1732317e..d87579cb 100644 --- a/frontend/src/locale/src/en.json +++ b/frontend/src/locale/src/en.json @@ -428,6 +428,9 @@ "object.event.enabled": { "defaultMessage": "Enabled {object}" }, + "object.event.renewed": { + "defaultMessage": "Renewed {object}" + }, "object.event.updated": { "defaultMessage": "Updated {object}" },