pick first port on select container

This commit is contained in:
miloschwartz 2025-06-09 13:01:53 -04:00
parent 9177eaba22
commit cd54e7dd38
No known key found for this signature in database

View file

@ -346,16 +346,19 @@ const DockerContainersTable: FC<{
{ {
id: "actions", id: "actions",
header: "Actions", header: "Actions",
cell: ({ row }) => ( cell: ({ row }) => {
<Button const ports = getExposedPorts(row.original);
variant="default" return (
size="sm" <Button
onClick={() => onContainerSelect(row.original)} variant="default"
disabled={row.original.state !== "running"} size="sm"
> onClick={() => onContainerSelect(row.original, ports[0])}
Select disabled={row.original.state !== "running"}
</Button> >
) Select
</Button>
);
}
} }
]; ];