Skip to content

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

moveFiles between columns

Stanimirafffac6ad576
diff --git a/app/reducers/io-actions.ts b/app/reducers/io-actions.ts
index 22598642a..bfff0e15e 100644
--- a/app/reducers/io-actions.ts
+++ b/app/reducers/io-actions.ts
@@ -58,7 +58,7 @@ const actions = {
);
},
moveFiles: (paths: Array<string>, targetPath: string) => (
- dispatch: (actions: Object) => void
+ dispatch: (actions: Object) => Promise<boolean>
) => {
/* const renameJobs = [];
paths.map((path) => {
@@ -82,7 +82,7 @@ const actions = {
]);
return true;
});
- renameFilesPromise(moveJobs)
+ return renameFilesPromise(moveJobs)
.then(() => {
dispatch(
AppActions.showNotification(i18n.t('core:filesMovedSuccessful'))