projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
20029: Refactor replaceFiles operations
[arvados-workbench2.git]
/
src
/
store
/
collection-panel
/
collection-panel-files
/
collection-panel-files-actions.ts
diff --git
a/src/store/collection-panel/collection-panel-files/collection-panel-files-actions.ts
b/src/store/collection-panel/collection-panel-files/collection-panel-files-actions.ts
index 8c5e5b5a67df1f345ccd0ef645b7ec2e25e858c0..e35c1560bfee12cedae8892e837b47091d9ccb96 100644
(file)
--- a/
src/store/collection-panel/collection-panel-files/collection-panel-files-actions.ts
+++ b/
src/store/collection-panel/collection-panel-files/collection-panel-files-actions.ts
@@
-129,7
+129,7
@@
export const renameFile = (newFullPath: string) =>
dispatch(startSubmit(RENAME_FILE_DIALOG));
const oldPath = getFileFullPath(file);
const newPath = newFullPath;
dispatch(startSubmit(RENAME_FILE_DIALOG));
const oldPath = getFileFullPath(file);
const newPath = newFullPath;
- services.collectionService.
moveFile(currentCollection.uuid
, oldPath, newPath).then(() => {
+ services.collectionService.
renameFile(currentCollection.uuid, currentCollection.portableDataHash
, oldPath, newPath).then(() => {
dispatch(dialogActions.CLOSE_DIALOG({ id: RENAME_FILE_DIALOG }));
dispatch(snackbarActions.OPEN_SNACKBAR({ message: 'File name changed.', hideDuration: 2000 }));
}).catch(e => {
dispatch(dialogActions.CLOSE_DIALOG({ id: RENAME_FILE_DIALOG }));
dispatch(snackbarActions.OPEN_SNACKBAR({ message: 'File name changed.', hideDuration: 2000 }));
}).catch(e => {