clients page improvements: convert ip allocation index to addresses

This commit is contained in:
2024-12-23 00:33:08 -08:00
parent 2b56cba770
commit d5b5f037ac
3 changed files with 32 additions and 9 deletions

View File

@@ -27,8 +27,10 @@
<Table.Cell class="truncate max-w-[10ch]">{client.publicKey}</Table.Cell>
<Table.Cell class="truncate max-w-[10ch]">{client.privateKey}</Table.Cell>
<Table.Cell class="truncate max-w-[10ch]">{client.preSharedKey}</Table.Cell>
<Table.Cell>
<Badge class="bg-background select-auto" variant="secondary">{client.ipAllocation.id}</Badge>
<Table.Cell class="flex gap-1">
{#each client.ips as ip}
<Badge class="bg-background select-auto" variant="secondary">{ip}</Badge>
{/each}
</Table.Cell>
</Table.Row>
{/each}