Use a modal manager

This commit is contained in:
Jamie Curnow
2025-10-14 17:49:56 +10:00
parent e6f7ae3fba
commit 7af01d0fc7
32 changed files with 291 additions and 251 deletions

View File

@@ -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;