Skip to content

Commit c3933fd

Browse files
committed
OpenConceptLab/ocl_issues#2258 | decision summary target concept click show open details dialog
1 parent cfc7d59 commit c3933fd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/components/map-projects/MapProject.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2210,6 +2210,7 @@ const MapProject = () => {
22102210
onMap={onMap}
22112211
proposed={proposed[rowIndex]}
22122212
columns={columns}
2213+
onTargetClick={setShowItem}
22132214
/>
22142215
<Divider sx={{width: '100%'}} />
22152216
<DecisionSelector

src/components/map-projects/MappingDecisionResult.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import ConceptSummaryProperties from '../concepts/ConceptSummaryProperties'
1616
import MapButton from './MapButton'
1717
import Score from './Score'
1818

19-
const MappingDecisionResult = ({targetConcept, row, rowIndex, mapTypes, allMapTypes, onMap, proposed, columns, repoVersion}) => {
19+
const MappingDecisionResult = ({targetConcept, row, rowIndex, mapTypes, allMapTypes, onMap, proposed, columns, repoVersion, onTargetClick}) => {
2020
const parentParams = targetConcept?.url ? URIToParentParams(targetConcept.url) : {}
2121
const hasClass = has(row, 'Class') || has(row, 'Concept Class') || has(row, 'Property: Class')
2222
const hasDatatype = has(row, 'Datatype') || has(row, 'datatype') || has(row, 'Property: Datatype')
@@ -137,7 +137,7 @@ const MappingDecisionResult = ({targetConcept, row, rowIndex, mapTypes, allMapTy
137137
<Typography component='div' sx={{color: 'rgba(0, 0, 0, 0.6)', fontSize: '12px'}}>Relationship</Typography>
138138
<MapButton options={allMapTypes} selected={mapTypes[rowIndex]} onClick={(event, applied, mapType) => onMap(event, targetConcept, !applied, mapType)} isMapped sx={{marginTop: '6px'}} mapOnly usedMapTypes={compact(values(mapTypes))} />
139139
</div>
140-
<div style={{marginLeft: '24px', maxWidth: '45%'}}>
140+
<div style={{marginLeft: '24px', maxWidth: '45%', cursor: 'pointer'}} onClick={() => onTargetClick(targetConcept)}>
141141
<Typography component='span' sx={{color: 'rgba(0, 0, 0, 0.6)', fontSize: '12px'}}>Target Code</Typography>
142142
<div className='col-xs-12 padding-0'>
143143
<ListItemText

0 commit comments

Comments
 (0)