TagSpaces is an offline, open source, document manager with tagging support
chore: adjustment in create/edit locations dialog related to ios functionality
Ilian Sapundshiev956392b2dec9
diff --git a/src/renderer/components/dialogs/components/LocalForm.tsx b/src/renderer/components/dialogs/components/LocalForm.tsxindex 3dc2d66d3..01646c445 100644--- a/src/renderer/components/dialogs/components/LocalForm.tsx+++ b/src/renderer/components/dialogs/components/LocalForm.tsx@@ -113,14 +113,25 @@ function LocalForm(props: Props) {autoCapitalize: 'none',endAdornment: (<InputAdornment position="end" sx={{ height: '32px' }}>- <TsButton- size="small"- data-tid="openDirectoryTID"- onClick={openDirectory}- variant="contained"- >- {t('core:chooseFolder')}- </TsButton>+ {AppConfig.isCapacitoriOS ? (+ <TsButton+ size="small"+ data-tid="useICloudDriveTID"+ onClick={useICloudDrive}+ variant="contained"+ >+ {t('core:useICloudDrive')}+ </TsButton>+ ) : (+ <TsButton+ size="small"+ data-tid="openDirectoryTID"+ onClick={openDirectory}+ variant="contained"+ >+ {t('core:chooseFolder')}+ </TsButton>+ )}</InputAdornment>),},@@ -134,15 +145,7 @@ function LocalForm(props: Props) {</FormHelperText>)}{AppConfig.isCapacitoriOS && (- <TsButton- size="small"- data-tid="useICloudDriveTID"- onClick={useICloudDrive}- variant="outlined"- sx={{ marginTop: '8px', alignSelf: 'flex-start' }}- >- {t('core:useICloudDrive')}- </TsButton>+ <FormHelperText>{t('core:iosLocalPathHint')}</FormHelperText>)}</FormControl></Grid>diff --git a/src/renderer/locales/en/core.json b/src/renderer/locales/en/core.jsonindex 86f1b1a93..9e3ef583d 100644--- a/src/renderer/locales/en/core.json+++ b/src/renderer/locales/en/core.json@@ -576,6 +576,7 @@"iCloudFolder": "iCloud Drive","useICloudDrive": "Use iCloud Drive","iCloudNotAvailable": "iCloud Drive is not available. Make sure you are signed in to iCloud and iCloud Drive is enabled in Settings.",+ "iosLocalPathHint": "Tip: enter / as path to use the app's internal storage. Tap \"Use iCloud Drive\" above to connect your iCloud Drive folder.","startImportButton": "Import","startExportButton": "Export","extractGeoCoordinates": "Extract geo-coordinates from files as tags",