Skip to content

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

fix ignore patterns (#1743)

Stanimir5081b89af09c
diff --git a/app/components/dialogs/CreateEditLocationDialog.tsx b/app/components/dialogs/CreateEditLocationDialog.tsx
index 0cfdd33f1..083cd368e 100644
--- a/app/components/dialogs/CreateEditLocationDialog.tsx
+++ b/app/components/dialogs/CreateEditLocationDialog.tsx
@@ -829,7 +829,7 @@ function CreateEditLocationDialog(props: Props) {
</Typography>
}
/>
- {ignorePatternPaths && ignorePatternPaths.length && (
+ {ignorePatternPaths && ignorePatternPaths.length > 0 && (
<List
style={{
padding: 5,
@@ -859,7 +859,7 @@ function CreateEditLocationDialog(props: Props) {
))}
</List>
)}
- {IgnorePatternDialog && isIgnorePatternDialogOpen && (
+ {IgnorePatternDialog && (
<IgnorePatternDialog
open={isIgnorePatternDialogOpen}
onClose={() => setIgnorePatternDialogOpen(false)}
diff --git a/app/package.json b/app/package.json
index 7bf099b83..254c8c38a 100644
--- a/app/package.json
+++ b/app/package.json
@@ -16,7 +16,7 @@
"@tagspaces/extensions": "1.0.32"
},
"nodeDependencies": {
- "@tagspaces/tagspaces-ws": "2.0.21",
+ "@tagspaces/tagspaces-ws": "2.0.22",
"@tagspaces/extensions": "1.0.32",
"sharp": "^0.30.7"
}
diff --git a/app/perspectives/grid-perspective/components/CellContent.tsx b/app/perspectives/grid-perspective/components/CellContent.tsx
index 05395e5a3..e24191140 100644
--- a/app/perspectives/grid-perspective/components/CellContent.tsx
+++ b/app/perspectives/grid-perspective/components/CellContent.tsx
@@ -161,12 +161,11 @@ function CellContent(props: Props) {
<div
style={{
background: fsEntryBgColor,
- opacity: fsEntry.isIgnored ? 0.3 : 1
+ // opacity: fsEntry.isIgnored ? 0.3 : 1
}}
>
<div
className={classes.gridCellThumb}
- title={fsEntry.isIgnored && i18n.t('core:ignoredFolder')}
style={{
position: 'relative',
height: 150
@@ -282,9 +281,8 @@ function CellContent(props: Props) {
container
wrap="nowrap"
className={classes.rowHover}
- title={fsEntry.isIgnored && i18n.t('core:ignoredFolder')}
style={{
- opacity: fsEntry.isIgnored ? 0.3 : 1,
+ // opacity: fsEntry.isIgnored ? 0.3 : 1,
backgroundColor,
borderRadius: 5
}}
diff --git a/app/tagspaces.namespace.d.ts b/app/tagspaces.namespace.d.ts
index b4c101c41..e6e97a125 100644
--- a/app/tagspaces.namespace.d.ts
+++ b/app/tagspaces.namespace.d.ts
@@ -125,7 +125,7 @@ export namespace TS {
path: string;
url?: string;
meta?: FileSystemEntryMeta;
- isIgnored?: boolean;
+ // isIgnored?: boolean;
}
interface FileSystemEntryMeta {
diff --git a/package.json b/package.json
index 7b0b9ad5e..347463e0f 100644
--- a/package.json
+++ b/package.json
@@ -156,7 +156,7 @@
"@mui/lab": "^5.0.0-alpha.92",
"@mui/material": "^5.9.2",
"@mui/styles": "^5.9.2",
- "@tagspaces/tagspaces-platforms": "2.0.21",
+ "@tagspaces/tagspaces-platforms": "2.0.22",
"aws-amplify": "^4.3.8",
"aws-sdk": "^2.1036.0",
"babel-polyfill": "^6.26.0",