Show resource link in table for requests

This commit is contained in:
Owen
2025-10-22 14:58:18 -07:00
parent f2c31d3ca6
commit 7f981f05fb
3 changed files with 25 additions and 4 deletions

View File

@@ -9,7 +9,8 @@ import { useTranslations } from "next-intl";
import { LogDataTable } from "@app/components/LogDataTable";
import { ColumnDef } from "@tanstack/react-table";
import { DateTimeValue } from "@app/components/DateTimePicker";
import { Key, RouteOff, User, Lock, Unlock } from "lucide-react";
import { Key, RouteOff, User, Lock, Unlock, ArrowUpRight } from "lucide-react";
import Link from "next/link";
export default function GeneralPage() {
const [isDeleteModalOpen, setIsDeleteModalOpen] = useState(false);
@@ -294,7 +295,22 @@ export default function GeneralPage() {
);
}
},
{
accessorKey: "resourceName",
header: t("resource"),
cell: ({ row }) => {
return (
<Link
href={`/${row.original.orgId}/settings/resources/${row.original.resourceNiceId}`}
>
<Button variant="outline" size="sm" className="text-xs h-6">
{row.original.resourceName}
<ArrowUpRight className="ml-2 h-3 w-3" />
</Button>
</Link>
);
}
},
{
accessorKey: "host",
header: ({ column }) => {