mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-19 01:44:13 +00:00
Merge pull request #3595 from haiwen/repaire_click_root
Repaire click root
This commit is contained in:
@@ -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 => {
|
||||
|
@@ -96,7 +96,8 @@ class MoveDirent extends React.Component {
|
||||
}
|
||||
|
||||
moveItem = () => {
|
||||
let { repo, repoID, selectedPath } = this.state;
|
||||
let { repoID } = this.props;
|
||||
let { repo, selectedPath } = this.state;
|
||||
let direntPath = Utils.joinPath(this.props.path, this.props.dirent.name);
|
||||
let message = gettext('Invalid destination path');
|
||||
|
||||
|
Reference in New Issue
Block a user