Skip to content

TagSpaces is an offline, open source, document manager with tagging support

skip download for S3

sytolkf88bf5734a41
diff --git a/src/renderer/components/MobileNavigation.tsx b/src/renderer/components/MobileNavigation.tsx
index 91dc066f5..f2bedf92e 100644
--- a/src/renderer/components/MobileNavigation.tsx
+++ b/src/renderer/components/MobileNavigation.tsx
@@ -113,7 +113,7 @@ function MobileNavigation(props: Props) {
const theme = useTheme();
const dispatch: AppDispatch = useDispatch();
- const { setSelectedLocation } = useCurrentLocationContext();
+ const { setSelectedLocation, currentLocation } = useCurrentLocationContext();
const { currentDirectoryPath } = useDirectoryContentContext();
const { openFileUpload } = useFileUploadContext();
const { openCreateEditLocationDialog } = useCreateEditLocationDialogContext();
@@ -374,24 +374,27 @@ function MobileNavigation(props: Props) {
</ListItemIcon>
<ListItemText primary={t('core:addFiles')} />
</MenuItem>
- {AppConfig.isElectron && (
- <MenuItem
- key="newFromDownloadURL"
- data-tid="newFromDownloadURLTID"
- onClick={() => {
- openDownloadUrl();
- setOpenCreateMenu(false);
- if (hideDrawer) {
- hideDrawer();
- }
- }}
- >
- <ListItemIcon>
- <FileDownloadIcon />
- </ListItemIcon>
- <ListItemText primary={t('core:newFromDownloadURL')} />
- </MenuItem>
- )}
+ {AppConfig.isElectron &&
+ !currentLocation?.haveObjectStoreSupport() && (
+ <MenuItem
+ key="newFromDownloadURL"
+ data-tid="newFromDownloadURLTID"
+ onClick={() => {
+ openDownloadUrl();
+ setOpenCreateMenu(false);
+ if (hideDrawer) {
+ hideDrawer();
+ }
+ }}
+ >
+ <ListItemIcon>
+ <FileDownloadIcon />
+ </ListItemIcon>
+ <ListItemText
+ primary={t('core:newFromDownloadURL')}
+ />
+ </MenuItem>
+ )}
<Divider />
<MenuItem
key="createNewFolderTID"