mirror of
https://github.com/outbackdingo/pangolin.git
synced 2026-01-27 10:20:03 +00:00
list targes in frontend
This commit is contained in:
@@ -420,7 +420,7 @@ export default function ResourcesTable({
|
||||
},
|
||||
cell: ({ row }) => {
|
||||
const resourceRow = row.original as ResourceRow & {
|
||||
targets?: { host: string; port: number }[];
|
||||
targets?: { ip: string; port: number }[];
|
||||
};
|
||||
|
||||
const targets = resourceRow.targets ?? [];
|
||||
@@ -446,12 +446,10 @@ export default function ResourcesTable({
|
||||
|
||||
<DropdownMenuContent align="start" className="min-w-[200px]">
|
||||
{targets.map((target, idx) => {
|
||||
const key = `${resourceRow.id}:${target.host}:${target.port}`;
|
||||
|
||||
return (
|
||||
<DropdownMenuItem key={idx} className="flex items-center gap-2">
|
||||
<CopyToClipboard
|
||||
text={`${target.host}:${target.port}`}
|
||||
text={`${target.ip}:${target.port}`}
|
||||
isLink={false}
|
||||
/>
|
||||
</DropdownMenuItem>
|
||||
|
||||
Reference in New Issue
Block a user