TagSpaces is an offline, open source, document manager with tagging support
fix: disabling link for dowloading s3 files on folders
Ilian Sapundshiev476d30fe1e31
diff --git a/app/components/EntryProperties.tsx b/app/components/EntryProperties.tsxindex c742e5400..3487e55d7 100644--- a/app/components/EntryProperties.tsx+++ b/app/components/EntryProperties.tsx@@ -610,6 +610,8 @@ const EntryProperties = (props: Props) => {? convertMarkDown(currentEntry.description, directoryPath): i18n.t('core:addMarkdownDescription');+ const showLinkForDownloading = isCloudLocation && currentEntry.isFile;+// @ts-ignorereturn (<div className={classes.entryProperties}>@@ -1070,7 +1072,7 @@ const EntryProperties = (props: Props) => {</FormControl></Grid>- <Grid item xs={isCloudLocation ? 6 : 12}>+ <Grid item xs={showLinkForDownloading ? 6 : 12}><Typographyvariant="caption"className={classNames(classes.header)}@@ -1128,7 +1130,7 @@ const EntryProperties = (props: Props) => {</FormControl></Grid>- {isCloudLocation && (+ {showLinkForDownloading && (<Grid item xs={6}><Typographyvariant="caption"