Skip to content

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

disabling open file natively in objectstore mode

Ilian Sapundshievfb042f954eab
diff --git a/app/components/EntryContainer.js b/app/components/EntryContainer.js
index 6c53ebf9b..0957dfa53 100644
--- a/app/components/EntryContainer.js
+++ b/app/components/EntryContainer.js
@@ -596,13 +596,15 @@ class EntryContainer extends React.Component<Props, State> {
>
<ExpandIcon />
</IconButton>
- <IconButton
- title={i18n.t('core:openFileExternally')}
- aria-label={i18n.t('core:openFileExternally')}
- onClick={this.openNatively}
- >
- <OpenNativelyIcon />
- </IconButton>
+ {!PlatformIO.haveObjectStoreSupport() && (
+ <IconButton
+ title={i18n.t('core:openFileExternally')}
+ aria-label={i18n.t('core:openFileExternally')}
+ onClick={this.openNatively}
+ >
+ <OpenNativelyIcon />
+ </IconButton>
+ )}
<IconButton
title={i18n.t('core:downloadFile')}
aria-label={i18n.t('core:downloadFile')}
@@ -688,13 +690,15 @@ class EntryContainer extends React.Component<Props, State> {
renderFolderToolbar = () => (
<div className={this.props.classes.toolbar2}>
<div className={this.props.classes.flexLeft}>
- <IconButton
- title={i18n.t('core:openDirectoryExternally')}
- aria-label={i18n.t('core:openDirectoryExternally')}
- onClick={this.openNatively}
- >
- <OpenNativelyIcon />
- </IconButton>
+ {!PlatformIO.haveObjectStoreSupport() && (
+ <IconButton
+ title={i18n.t('core:openDirectoryExternally')}
+ aria-label={i18n.t('core:openDirectoryExternally')}
+ onClick={this.openNatively}
+ >
+ <OpenNativelyIcon />
+ </IconButton>
+ )}
<IconButton
title={i18n.t('core:reloadDirectory')}
aria-label={i18n.t('core:reloadDirectory')}