Skip to content

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

chore: disabling not supported functionalities in ios and android

Ilian Sapundshiev6e44c9fcfeca
diff --git a/src/renderer/components/EntryContainerMenu.tsx b/src/renderer/components/EntryContainerMenu.tsx
index 6a9a90a46..15d5985ca 100644
--- a/src/renderer/components/EntryContainerMenu.tsx
+++ b/src/renderer/components/EntryContainerMenu.tsx
@@ -376,7 +376,8 @@ function EntryContainerMenu(props: Props) {
!(
currentLocation?.haveObjectStoreSupport() ||
currentLocation?.haveWebDavSupport() ||
- AppConfig.isWeb
+ AppConfig.isWeb ||
+ AppConfig.isNativeMobile
) &&
!(AppConfig.isAndroid && !openedEntry.isFile)
) {
@@ -484,7 +485,8 @@ function EntryContainerMenu(props: Props) {
!(
currentLocation?.haveObjectStoreSupport() ||
currentLocation?.haveWebDavSupport() ||
- AppConfig.isWeb
+ AppConfig.isWeb ||
+ AppConfig.isNativeMobile
)
) {
menuItems.push(
diff --git a/src/renderer/components/menus/FileMenu.tsx b/src/renderer/components/menus/FileMenu.tsx
index 51f37fc1d..16cae14cb 100644
--- a/src/renderer/components/menus/FileMenu.tsx
+++ b/src/renderer/components/menus/FileMenu.tsx
@@ -385,7 +385,8 @@ function FileMenu(props: Props) {
(currentLocation &&
(currentLocation.haveObjectStoreSupport() ||
currentLocation.haveWebDavSupport())) ||
- AppConfig.isWeb
+ AppConfig.isWeb ||
+ AppConfig.isNativeMobile
);
// "Open ▸" groups every way to open the entry — in TagSpaces, its parent
// folder, natively, and with a specific extension — into one submenu.
@@ -484,18 +485,20 @@ function FileMenu(props: Props) {
</TsMenuList>
</Menu>,
);
- menuItems.push(
- <MenuItem
- key="fileMenuOpenFileNewWindow"
- data-tid="fileMenuOpenFileNewWindow"
- onClick={openInNewWindow}
- >
- <ListItemIcon>
- <OpenNewWindowIcon />
- </ListItemIcon>
- <ListItemText primary={t('core:openInWindow')} />
- </MenuItem>,
- );
+ if (!AppConfig.isNativeMobile) {
+ menuItems.push(
+ <MenuItem
+ key="fileMenuOpenFileNewWindow"
+ data-tid="fileMenuOpenFileNewWindow"
+ onClick={openInNewWindow}
+ >
+ <ListItemIcon>
+ <OpenNewWindowIcon />
+ </ListItemIcon>
+ <ListItemText primary={t('core:openInWindow')} />
+ </MenuItem>,
+ );
+ }
}
if (
!(
diff --git a/src/renderer/perspectives/common/DirectoryMenuItems.tsx b/src/renderer/perspectives/common/DirectoryMenuItems.tsx
index 1f4e2dbf2..128b6dd7b 100644
--- a/src/renderer/perspectives/common/DirectoryMenuItems.tsx
+++ b/src/renderer/perspectives/common/DirectoryMenuItems.tsx
@@ -90,7 +90,7 @@ export function getDirectoryMenuItems(
</MenuItem>,
);
}
- if (openInNewWindow) {
+ if (openInNewWindow && !AppConfig.isNativeMobile) {
menuItems.push(
<MenuItem
key="openInNewWindow"