Show allocated ports on settings page

This commit is contained in:
Dane Everitt 2020-07-08 21:42:37 -07:00
parent 7b5139b2b1
commit 5c18fd1f0c
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
5 changed files with 75 additions and 10 deletions

View file

@ -65,7 +65,7 @@ export default ({ server }: { server: Server }) => {
<FontAwesomeIcon icon={faEthernet} css={tw`text-neutral-500`}/>
<p css={tw`text-sm text-neutral-400 ml-2`}>
{
server.allocations.filter(alloc => alloc.default).map(allocation => (
server.allocations.filter(alloc => alloc.isDefault).map(allocation => (
<span key={allocation.ip + allocation.port.toString()}>{allocation.alias || allocation.ip}:{allocation.port}</span>
))
}