Skip to content

Commit 3066f17

Browse files
committed
OpenConceptLab/ocl_issues#2323 | using individual icon button for candidates controls
1 parent 22e72f1 commit 3066f17

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

src/components/map-projects/Candidates.jsx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import React from 'react'
44
import { useTranslation } from 'react-i18next';
55
import Alert from '@mui/material/Alert';
66
import Collapse from '@mui/material/Collapse';
7-
import ButtonGroup from '@mui/material/ButtonGroup';
7+
import IconButton from '@mui/material/IconButton'
88
import ListSubheader from '@mui/material/ListSubheader';
99
import List from '@mui/material/List';
1010
import Menu from '@mui/material/Menu';
@@ -98,9 +98,9 @@ const Sort = ({ selected, onSort }) => {
9898
return (
9999
<>
100100
<Tooltip title={t('map_project.sort_candidates')}>
101-
<Button onClick={onSortClick}>
101+
<IconButton color='secondary' onClick={onSortClick} sx={{margin: '0 4px'}}>
102102
<SortIcon />
103-
</Button>
103+
</IconButton>
104104
</Tooltip>
105105
<Menu
106106
anchorEl={anchorEl}
@@ -138,9 +138,9 @@ const Group = ({ selected, onGroup }) => {
138138
return (
139139
<>
140140
<Tooltip title={t('map_project.group_candidates')}>
141-
<Button onClick={onGroupClick}>
141+
<IconButton color='secondary' onClick={onGroupClick} sx={{margin: '0 4px'}}>
142142
<GroupIcon />
143-
</Button>
143+
</IconButton>
144144
</Tooltip>
145145

146146
<Menu
@@ -423,17 +423,17 @@ const Candidates = ({rowIndex, alert, setAlert, candidates, setShowItem, showIte
423423
}
424424
{
425425
!noCandidatesFound &&
426-
<ButtonGroup color='info.dark' variant='outlined' size='small'>
427-
<Tooltip title={t('map_project.refresh_candidates_tooltip')}>
428-
<span>
429-
<Button onClick={onRefreshClick} disabled={!areAlgoRun}>
430-
<RefreshIcon />
431-
</Button>
432-
</span>
433-
</Tooltip>
426+
<>
427+
<Tooltip title={t('map_project.refresh_candidates_tooltip')}>
428+
<span>
429+
<IconButton color='secondary' onClick={onRefreshClick} disabled={!areAlgoRun} size='small' sx={{margin: '0 4px'}}>
430+
<RefreshIcon />
431+
</IconButton>
432+
</span>
433+
</Tooltip>
434434
<Group onGroup={onGroup} selected={groupBy} />
435435
<Sort onSort={onSort} selected={sortBy} />
436-
</ButtonGroup>
436+
</>
437437
}
438438
{
439439
inAIAssistantGroup &&

src/i18n/locales/en/translations.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@
556556
"lookup_configuration_url": "Repository URL",
557557
"lookup_configuration_token": "Token",
558558
"lookup_configuration_description": "Configure a Source/CodeSystem for lookup operation to fetch candidates definitions.",
559-
"refresh_candidates_tooltip": "Refresh Candidates -- this will wipe out existing candidates AND existing AI Assistant recommendations (though everything is maintained in the log history)",
559+
"refresh_candidates_tooltip": "Refresh Candidates",
560560
"group_candidates": "Group By",
561561
"sort_candidates": "Sort",
562562
"created_by_log": "<0>{{created_by}}</0> created mapping project in the <1>{{owner}}</1> workspace",

0 commit comments

Comments
 (0)