mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-11-01 16:23:33 +00:00
Use a modal manager
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import { IconArrowsCross, IconBolt, IconBoltOff, IconDisc, IconUser } from "@tabler/icons-react";
|
||||
import { IconArrowsCross, IconBolt, IconBoltOff, IconDisc, IconLock, IconUser } from "@tabler/icons-react";
|
||||
import type { AuditLog } from "src/api/backend";
|
||||
import { DateTimeFormat, T } from "src/locale";
|
||||
|
||||
const getEventValue = (event: AuditLog) => {
|
||||
switch (event.objectType) {
|
||||
case "access-list":
|
||||
case "user":
|
||||
return event.meta?.name;
|
||||
case "proxy-host":
|
||||
@@ -47,6 +48,9 @@ const getIcon = (row: AuditLog) => {
|
||||
case "stream":
|
||||
ico = <IconDisc size={16} className={c} />;
|
||||
break;
|
||||
case "access-list":
|
||||
ico = <IconLock size={16} className={c} />;
|
||||
break;
|
||||
}
|
||||
|
||||
return ico;
|
||||
|
||||
Reference in New Issue
Block a user