1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-03 07:55:36 +00:00

Copyitems into the current directory

This commit is contained in:
zxj96
2019-05-31 12:13:24 +08:00
parent e07aad7b54
commit 864f8778f9
2 changed files with 9 additions and 6 deletions

View File

@@ -67,12 +67,6 @@ class CopyDirent extends React.Component {
return;
}
// copy dirents to current path
if (selectedPath && selectedPath === this.props.path && repo.repo_id === repoID) {
this.setState({errMessage: message});
return;
}
// copy dirents to one of their child. eg: A/B, A/D -> A/B/C
let copyDirentPath = '';
let isChildPath = direntPaths.some(direntPath => {
@@ -110,6 +104,9 @@ class CopyDirent extends React.Component {
this.setState({errMessage: message});
return;
}
console.log(repo.repo_id);
console.log(repoID)
// copy the dirent to current path
if (selectedPath && this.props.path === selectedPath && repo.repo_id === repoID) {