Skip to content

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

TSN542 - Clear / reset folder color (#1395)

Stanimire9a93d58ac81
diff --git a/app/components/EntryProperties.tsx b/app/components/EntryProperties.tsx
index 8b57741a2..d84294e1c 100644
--- a/app/components/EntryProperties.tsx
+++ b/app/components/EntryProperties.tsx
@@ -417,6 +417,10 @@ const EntryProperties = (props: Props) => {
};
const handleChangeColor = color => {
+ if (color === 'transparent0') {
+ // eslint-disable-next-line no-param-reassign
+ color = 'transparent';
+ }
Pro.MetaOperations.saveColor(currentEntry.path, color)
.then(entryMeta => {
// if (props.entryPath === props.currentDirectoryPath) {
diff --git a/app/reducers/app.ts b/app/reducers/app.ts
index 9d44c625b..8c76edecd 100644
--- a/app/reducers/app.ts
+++ b/app/reducers/app.ts
@@ -1589,6 +1589,9 @@ export const actions = {
if (fsEntry.perspective) {
entryForOpening.perspective = fsEntry.perspective;
}
+ if (fsEntry.color) {
+ entryForOpening.color = fsEntry.color;
+ }
if (fsEntry.description) {
entryForOpening.description = fsEntry.description;
}