Skip to content

Commit

Permalink
Oops; added other relevant data: id, dates
Browse files Browse the repository at this point in the history
  • Loading branch information
charliepark committed Dec 18, 2024
1 parent f9ff4bc commit a40237f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/forms/floating-ip-edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ import { addToast } from '~/stores/toast'
import { EmptyCell } from '~/table/cells/EmptyCell'
import { IpPoolCell } from '~/table/cells/IpPoolCell'
import { CopyableIp } from '~/ui/lib/CopyableIp'
import { DateTime } from '~/ui/lib/DateTime'
import { PropertiesTable } from '~/ui/lib/PropertiesTable'
import { Truncate } from '~/ui/lib/Truncate'
import { ALL_ISH } from '~/util/consts'
import type * as PP from '~/util/path-params'
import { pb } from 'app/util/path-builder'
Expand Down Expand Up @@ -83,6 +85,15 @@ export function EditFloatingIpSideModalForm() {
submitError={editFloatingIp.error}
>
<PropertiesTable>
<PropertiesTable.Row label="ID">
<Truncate text={floatingIp.id} maxLength={32} hasCopyButton />
</PropertiesTable.Row>
<PropertiesTable.Row label="Created">
<DateTime date={floatingIp.timeCreated} />
</PropertiesTable.Row>
<PropertiesTable.Row label="Updated">
<DateTime date={floatingIp.timeModified} />
</PropertiesTable.Row>
<PropertiesTable.Row label="IP Address">
<CopyableIp ip={floatingIp.ip} isLinked={false} />
</PropertiesTable.Row>
Expand Down

0 comments on commit a40237f

Please sign in to comment.