1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-03 16:10:26 +00:00

repair bug

This commit is contained in:
zxj96
2019-07-23 11:20:17 +08:00
parent dfac6dafea
commit f0835ad754

View File

@@ -936,7 +936,6 @@ class LibContentView extends React.Component {
}
let direntPath = Utils.joinPath(nodeParentPath, dirName);
seafileAPI.moveDir(repoID, destRepo.repo_id, moveToDirentPath, nodeParentPath, dirName).then(res => {
if (repoID !== destRepo.repo_id) {
let taskId = res.data.task_id;
seafileAPI.queryAsyncOperationProgress(taskId).then(res => {
@@ -949,7 +948,7 @@ class LibContentView extends React.Component {
if (this.state.currentMode === 'column') {
this.deleteTreeNode(direntPath);
}
this.moveDirent(direntPath, moveToDirentPath);
this.moveDirent(direntPath);
let message = gettext('Successfully moved %(name)s.');
message = message.replace('%(name)s', dirName);
toaster.success(message);