Skip to content

Commit e1617dd

Browse files
committed
OpenConceptLab/ocl_issues#2270 | selected state for project logs button
1 parent f920640 commit e1617dd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/components/map-projects/Controls.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const IkonButton = ({title, icon, onClick, color, disabled, id}) => {
3535
)
3636
}
3737

38-
const Controls = ({project, onDownload, onSave, onDelete, owner, file, isSaving, onImport, importResponse, onDownloadImportReport, onProjectLogsClick}) => {
38+
const Controls = ({project, onDownload, onSave, onDelete, owner, file, isSaving, onImport, importResponse, onDownloadImportReport, onProjectLogsClick, isProjectsLogOpen}) => {
3939
const { t } = useTranslation();
4040
const [anchorEl, setAnchorEl] = React.useState(null);
4141
const downloadOpen = Boolean(anchorEl);
@@ -46,7 +46,7 @@ const Controls = ({project, onDownload, onSave, onDelete, owner, file, isSaving,
4646
<span style={{textAlign: 'right'}}>
4747
<div>
4848
<IkonButton
49-
color='secondary'
49+
color={isProjectsLogOpen ? 'primary' : 'secondary'}
5050
onClick={onProjectLogsClick}
5151
title={t('map_project.project_logs_tooltip')}
5252
disabled={!project?.id}

src/components/map-projects/MapProject.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2066,6 +2066,7 @@ const MapProject = () => {
20662066
importResponse={imports[0]}
20672067
onDownloadImportReport={downloadImportReport}
20682068
onProjectLogsClick={() => setShowProjectLogs(!showProjectLogs)}
2069+
isProjectsLogOpen={showProjectLogs}
20692070
/>
20702071
}
20712072
</div>

0 commit comments

Comments
 (0)