Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1731 | Repo version list access chip
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Jan 10, 2024
1 parent 70d6e07 commit fa3fa55
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/common/ConceptContainerVersionList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ const ConceptContainerVersionList = ({ versions, resource, canEdit, onUpdate, fh
{
fhir ?
<ResourceVersionLabel {...version} short_code={version.id} /> :
<ResourceVersionLabel {...version} />
<ResourceVersionLabel {...version} showAccess />
}
</div>
<div className='col-md-12'>
Expand Down
7 changes: 7 additions & 0 deletions src/components/common/ResourceVersionLabel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import ReleasedChip from './ReleasedChip';
import RetiredChip from './RetiredChip';
import ProcessingChip from './ProcessingChip';
import ExpansionChip from './ExpansionChip';
import AccessChip from './AccessChip';
import { GREEN } from '../../common/constants';

const SEPARATOR = (<SeparatorIcon />)
Expand All @@ -26,6 +27,12 @@ const ResourceVersionLabel = props => {
<span className='separator-small'>{SEPARATOR}</span>
<span className='resource-name'>[{props.version}]</span>
</span>
{
props.showAccess && props.public_access &&
<span style={{marginLeft: '10px'}}>
<AccessChip size='small' publicAccess={props.public_access} />
</span>
}
{
props.released &&
<span style={{marginLeft: '10px'}}>
Expand Down

0 comments on commit fa3fa55

Please sign in to comment.