Skip to content

Commit

Permalink
fix(connector management): fix details overlay (#1142)
Browse files Browse the repository at this point in the history
  • Loading branch information
lavanya-bmw authored Sep 24, 2024
1 parent 7445b56 commit 6a45e6a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

### Bugfixes

- **Connector Management**
- fixed overlay enabling on click of managed connectors(details) [#1142](https://github.com/eclipse-tractusx/portal-frontend/pull/1142)
- **Connector Management**
- fixed customer link selection and fixed resetting values [#1119](https://github.com/eclipse-tractusx/portal-frontend/pull/1119)

Expand Down
15 changes: 4 additions & 11 deletions src/components/pages/EdcConnector/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,16 +158,12 @@ const EdcConnector = () => {
setAddConnectorOverlayOpen(false)
}

const onTableCellClick = (params: GridCellParams, title: string) => {
const onTableCellClick = (params: GridCellParams) => {
// Show overlay only when detail field clicked
if (
params.field === 'details' &&
title === t('content.edcconnector.tabletitle')
) {
if (params.field === 'details') {
setOpenDetailsOverlay(true)
setOverlayData(params.row)
}

setSelectedConnector(params.row as ConnectorContentAPIResponse)
}

Expand Down Expand Up @@ -508,7 +504,7 @@ const EdcConnector = () => {
getRowId={(row: { [key: string]: string }) => row.id}
columns={ownConnectorCols}
onCellClick={(params: GridCellParams) => {
onTableCellClick(params, t('content.edcconnector.tabletitle'))
onTableCellClick(params)
}}
/>
</div>
Expand All @@ -525,10 +521,7 @@ const EdcConnector = () => {
columns={managedConnectorCols}
noRowsMsg={t('content.edcconnector.noConnectorsMessage')}
onCellClick={(params: GridCellParams) => {
onTableCellClick(
params,
t('content.edcconnector.managedtabletitle')
)
onTableCellClick(params)
}}
/>
</div>
Expand Down

0 comments on commit 6a45e6a

Please sign in to comment.