Skip to content

Commit

Permalink
Service name on ports in enclave list
Browse files Browse the repository at this point in the history
  • Loading branch information
Dartoxian committed Feb 28, 2024
1 parent 2b8030b commit e0046ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ const enclaveToRow = (enclave: EnclaveFullInfo, catalog?: Result<GetPackagesResp
service.privatePorts,
service.maybePublicPorts,
service.maybePublicIpAddr,
service.name,
),
)
: null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export const getPortTableRows = (
privatePorts: Record<string, Port>,
publicPorts: Record<string, Port>,
publicIp: string,
serviceName?: string,
): PortsTableRow[] => {
return Object.entries(privatePorts).map(([name, port]) => {
let link;
Expand All @@ -45,7 +46,7 @@ export const getPortTableRows = (
transportProtocol: transportProtocolToString(port.transportProtocol),
privatePort: port.number,
publicPort: publicPorts[name].number,
name,
name: isDefined(serviceName) ? `${serviceName}:${name}` : name,
},
link: link,
};
Expand Down

0 comments on commit e0046ae

Please sign in to comment.