mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 23:20:51 +00:00
Improve search in file move/copy dialog (#3543)
This commit is contained in:
@@ -560,6 +560,11 @@ class DirentListView extends React.Component {
|
||||
if (nodeRootPath === this.props.path || nodeParentPath === this.props.path) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.props.path.indexOf(nodeRootPath) !== -1) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.props.onItemMove(this.props.currentRepoInfo, nodeDirent, this.props.path, nodeParentPath);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user