mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-11-01 16:23:33 +00:00
Streams polish
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { IconBoltOff, IconUser } from "@tabler/icons-react";
|
||||
import { IconBoltOff, IconDisc, IconUser } from "@tabler/icons-react";
|
||||
import type { AuditLog } from "src/api/backend";
|
||||
import { DateTimeFormat, intl } from "src/locale";
|
||||
|
||||
@@ -12,6 +12,8 @@ const getEventValue = (event: AuditLog) => {
|
||||
return event.meta?.name;
|
||||
case "dead-host":
|
||||
return event.meta?.domainNames?.join(", ") || "N/A";
|
||||
case "stream":
|
||||
return event.meta?.incomingPort || "N/A";
|
||||
default:
|
||||
return `UNKNOWN EVENT TYPE: ${event.objectType}`;
|
||||
}
|
||||
@@ -38,6 +40,9 @@ const getIcon = (row: AuditLog) => {
|
||||
case "dead-host":
|
||||
ico = <IconBoltOff size={16} className={c} />;
|
||||
break;
|
||||
case "stream":
|
||||
ico = <IconDisc size={16} className={c} />;
|
||||
break;
|
||||
}
|
||||
|
||||
return ico;
|
||||
|
||||
Reference in New Issue
Block a user