Skip to content

Commit

Permalink
Merge pull request #715 from OmarBrbutovic/display_network_internal
Browse files Browse the repository at this point in the history
Show network `internal` for containers on Release page
  • Loading branch information
davidebriani authored Nov 14, 2024
2 parents 3d351b7 + 927668c commit 7aa5053
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion frontend/src/components/ContainersTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const CONTAINERS_TABLE_FRAGMENT = graphql`
edges {
node {
driver
internal
}
}
}
Expand Down Expand Up @@ -95,7 +96,14 @@ const columns = [
cell: ({ getValue }) => getValue(),
}),
columnHelper.accessor(
(row) => row.networks.edges?.map((edge) => edge.node.driver).join(", "),
(row) =>
row.networks.edges
?.map((edge) =>
`${edge.node.driver} ${
edge.node.internal ? "(internal)" : ""
}`.trim(),
)
.join(", "),
{
id: "networks",
header: () => (
Expand Down

0 comments on commit 7aa5053

Please sign in to comment.