Skip to content

Commit

Permalink
diable scan for default folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Anis SMAIL committed Jan 30, 2025
1 parent d1e6b3b commit 907bb73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webapp/src/components/App/Studies/StudiesList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ function StudiesList(props: StudiesListProps) {
const [selectionMode, setSelectionMode] = useState(false);
const [confirmFolderScan, setConfirmFolderScan] = useState(false);
const [isRecursiveScan, setIsRecursiveScan] = useState(false);
const scanDisabled: boolean = !!folder && folder.startsWith("root/default");

useEffect(() => {
setFolderList(folder.split("/"));
Expand Down Expand Up @@ -267,7 +268,7 @@ function StudiesList(props: StudiesListProps) {

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

0 comments on commit 907bb73

Please sign in to comment.