Skip to content

Commit

Permalink
fix(ui): fix nonense tooltip messsage
Browse files Browse the repository at this point in the history
  • Loading branch information
Anis SMAIL authored and smailio committed Dec 4, 2024
1 parent 4442a5f commit 6612892
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions webapp/public/locales/en/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,7 @@
"studies.copySuffix": "Copy",
"studies.folder": "Folder",
"studies.filters.strictfolder": "Show only direct folder children",
"studies.filters.showAllDescendants": "Show all children",
"studies.scanFolder": "Scan folder",
"studies.requestDeepScan": "Scan the folder recursively (may be long) ?",
"studies.moveStudy": "Move",
Expand Down
1 change: 1 addition & 0 deletions webapp/public/locales/fr/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,7 @@
"studies.copySuffix": "Copie",
"studies.folder": "Dossier",
"studies.filters.strictfolder": "Afficher uniquement les descendants directs",
"studies.filters.showAllDescendants": "Afficher tous les descendants",
"studies.scanFolder": "Scanner le dossier",
"studies.requestDeepScan": "Scanner le dossier récursivement (ça peut être long) ?",
"studies.moveStudy": "Déplacer",
Expand Down
14 changes: 9 additions & 5 deletions webapp/src/components/App/Studies/StudiesList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -261,17 +261,21 @@ function StudiesList(props: StudiesListProps) {
<Typography mx={2} sx={{ color: "white" }}>
({`${studyIds.length} ${t("global.studies").toLowerCase()}`})
</Typography>
<Tooltip title={t("studies.filters.strictfolder") as string}>
{strictFolderFilter ? (

{strictFolderFilter ? (
<Tooltip title={t("studies.filters.strictfolder") as string}>
<IconButton onClick={toggleStrictFolder}>
<FolderIcon color="secondary" />
</IconButton>
) : (
</Tooltip>
) : (
<Tooltip title={t("studies.filters.showAllDescendants") as string}>
<IconButton onClick={toggleStrictFolder}>
<AccountTreeIcon color="secondary" />
</IconButton>
)}
</Tooltip>
</Tooltip>
)}

{folder !== "root" && (
<Tooltip title={t("studies.scanFolder") as string}>
<IconButton onClick={() => setConfirmFolderScan(true)}>
Expand Down

0 comments on commit 6612892

Please sign in to comment.