TagSpaces is an offline, open source, document manager with tagging support
chore: hiding current location for local location in the file create dialog
Ilian Sapundshiev493b9398f71e
diff --git a/src/renderer/components/dialogs/components/TargetPath.tsx b/src/renderer/components/dialogs/components/TargetPath.tsxindex 0ac97205c..0473fbd7e 100644--- a/src/renderer/components/dialogs/components/TargetPath.tsx+++ b/src/renderer/components/dialogs/components/TargetPath.tsx@@ -21,6 +21,7 @@ import { useTargetPathContext } from '-/components/dialogs/hooks/useTargetPathCoimport { useCurrentLocationContext } from '-/hooks/useCurrentLocationContext';import Grid from '@mui/material/Grid';import Typography from '@mui/material/Typography';+import { locationType } from '@tagspaces/tagspaces-common/misc';import { useTranslation } from 'react-i18next';function TargetPath() {@@ -39,8 +40,10 @@ function TargetPath() {<InfoIcon style={{ paddingRight: 10 }} />{t('core:entriesWillBeCreatedIn') +' ' +- (currentLocation ? currentLocation.name : '') +- ' ' ++ (currentLocation?.type === locationType.TYPE_CLOUD+ ? currentLocation.name+ : '') ++ '/' +targetDirectoryPath}</Typography>) : (