mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 15:09:14 +00:00
improve move copy code (#4522)
This commit is contained in:
@@ -607,6 +607,8 @@ class LibContentView extends React.Component {
|
||||
this.deleteTreeNode(this.currentMoveItemPath);
|
||||
}
|
||||
this.moveDirent(this.currentMoveItemName);
|
||||
this.currentMoveItemName = '';
|
||||
this.currentMoveItemPath = '';
|
||||
} else {
|
||||
if (this.state.currentMode === 'column') {
|
||||
let direntPaths = this.getSelectedDirentPaths();
|
||||
@@ -639,8 +641,9 @@ class LibContentView extends React.Component {
|
||||
}
|
||||
|
||||
cancelCopyMoveDirent = () => {
|
||||
let taskId = this.state.asyncCopyMoveTaskId;
|
||||
let { taskId, direntList } = this.state.asyncCopyMoveTaskId;
|
||||
seafileAPI.cancelCopyMoveOperation(taskId);
|
||||
this.setState({direntList: direntList.slice(0)});
|
||||
}
|
||||
|
||||
onMoveProgressDialogToggle = () => {
|
||||
|
Reference in New Issue
Block a user