@@ -166,7 +166,7 @@ export default function DeviceIndex({
|
||||
<Button variant="outline">Filter</Button>
|
||||
</form>
|
||||
<div className="overflow-x-auto">
|
||||
<table className="w-full min-w-[980px] table-fixed text-sm [&_td]:align-middle [&_td]:p-3 [&_th]:p-3">
|
||||
<table className="w-full min-w-[980px] table-fixed text-sm [&_td]:p-3 [&_td]:align-middle [&_th]:p-3">
|
||||
<colgroup>
|
||||
<col className="w-[20%]" />
|
||||
<col className="w-[18%]" />
|
||||
@@ -202,10 +202,25 @@ export default function DeviceIndex({
|
||||
'Model belum ditentukan'}
|
||||
</div>
|
||||
</td>
|
||||
<td className="break-words p-3">
|
||||
<div>{device.management_address}</div>
|
||||
<td className="p-3 break-words">
|
||||
<div>
|
||||
{device.management_address}
|
||||
</div>
|
||||
<div className="text-xs text-muted-foreground">
|
||||
{Object.entries(device.connection_ports ?? { [device.connection_type]: device.management_port }).map(([protocol, port]) => `${protocol}:${port}`).join(' · ')}
|
||||
{Object.entries(
|
||||
device.connection_ports ?? {
|
||||
[device.connection_type]:
|
||||
device.management_port,
|
||||
},
|
||||
)
|
||||
.map(
|
||||
([
|
||||
protocol,
|
||||
port,
|
||||
]) =>
|
||||
`${protocol}:${port}`,
|
||||
)
|
||||
.join(' · ')}
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
Reference in New Issue
Block a user