TagSpaces is an offline, open source, document manager with tagging support
feature: adding description and tags of the current folder in the app reducer
Ilian Sapundshievcc5d2b2469d1
diff --git a/app/reducers/app.ts b/app/reducers/app.tsindex 5f940f767..28fe707fc 100644--- a/app/reducers/app.ts+++ b/app/reducers/app.ts@@ -185,6 +185,8 @@ export const initialState = {currentLocationId: null,currentDirectoryPath: '',currentDirectoryColor: '',+ currentDirectoryDescription: '',+ currentDirectoryTags: [],currentDirectoryEntries: [],isReadOnlyMode: false,searchResults: [],@@ -271,6 +273,12 @@ export default (state: any = initialState, action: any) => {currentDirectoryColor: action.directoryMeta? action.directoryMeta.color || '': '',+ currentDirectoryTags: action.directoryMeta+ ? action.directoryMeta.tags || []+ : '',+ currentDirectoryDescription: action.directoryMeta+ ? action.directoryMeta.description || ''+ : '',currentDirectoryPerspective:action.directoryMeta && action.directoryMeta.perspective? action.directoryMeta.perspective@@ -2166,6 +2174,10 @@ export const getDirectoryContent = (state: any) =>state.app.currentDirectoryEntries;export const getCurrentDirectoryColor = (state: any) =>state.app.currentDirectoryColor;+export const getCurrentDirectoryDescription = (state: any) =>+ state.app.currentDirectoryDescription;+export const getCurrentDirectoryTags = (state: any) =>+ state.app.currentDirectoryTags;export const getCurrentDirectoryPerspective = (state: any) =>state.app.currentDirectoryPerspective;export const getDirectoryPath = (state: any) => state.app.currentDirectoryPath;