TagSpaces is an offline, open source, document manager with tagging support
KanBan fix for updating index after file move (#1779)
Stanimir2bf7d07eeb4b
diff --git a/app/reducers/io-actions.ts b/app/reducers/io-actions.tsindex 24e26296a..29a1857b8 100644--- a/app/reducers/io-actions.ts+++ b/app/reducers/io-actions.ts@@ -35,6 +35,7 @@ import { Pro } from '../pro';import TaggingActions from './tagging-actions';import PlatformIO from '-/services/platform-facade';import { TS } from '-/tagspaces.namespace';+import { actions as LocationIndexActions } from '-/reducers/location-index';const actions = {extractContent: (@@ -94,7 +95,8 @@ const actions = {);const moveMetaJobs = [];moveJobs.map(job => {- dispatch(AppActions.reflectRenameEntry(job[0], job[1])); // TODO moved files should be added to the index, if the target dir in index+ // dispatch(AppActions.reflectRenameEntry(job[0], job[1]));+ dispatch(LocationIndexActions.reflectRenameEntry(job[0], job[1])); // moved files should be added to the index, if the target dir in indexmoveMetaJobs.push([getMetaFileLocationForFile(job[0], PlatformIO.getDirSeparator()),getMetaFileLocationForFile(job[1], PlatformIO.getDirSeparator())