Skip to content

Commit

Permalink
Fix backend details displayed values
Browse files Browse the repository at this point in the history
  • Loading branch information
vanessavmac committed Dec 18, 2024
1 parent 6fbdc3e commit 780c6df
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions ui/src/data-services/models/backend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ export class Backend extends Entity {
return `${this._backend.id}`
}

get version(): number {
return this._backend.version
}

get endpointUrl(): string {
return `${this._backend.endpoint_url}`
}
Expand Down
2 changes: 1 addition & 1 deletion ui/src/pages/backend-details/backend-details-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const BackendDetailsContent = ({
/>
<InputValue
label={translate(STRING.FIELD_LABEL_VERSION)}
value={backend.versionLabel}
value={backend.version}
/>
</FormRow>
<FormRow>
Expand Down
12 changes: 6 additions & 6 deletions ui/src/pages/overview/backends/backends-columns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ export const columns: (projectId: string) => TableColumn<Backend>[] = () => [
id: 'name',
sortField: 'name',
name: translate(STRING.FIELD_LABEL_NAME),
renderCell: (item: Backend) => <BasicTableCell value={item.name} />,
renderCell: (item: Backend) => (
<BasicTableCell>
<BackendDetailsDialog id={item.id} name={item.name} />
</BasicTableCell>
),
},
{
id: 'endpoint',
name: translate(STRING.FIELD_LABEL_ENDPOINT),
sortField: 'endpoint',
renderCell: (item: Backend) => (
<BasicTableCell>
<BackendDetailsDialog id={item.id} name={item.endpointUrl} />
</BasicTableCell>
),
renderCell: (item: Backend) => <BasicTableCell value={item.endpointUrl} />,
},
{
id: 'created-at',
Expand Down

0 comments on commit 780c6df

Please sign in to comment.