mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-06 09:21:54 +00:00
[file chooser] directly open current folder for 'mv/cp dialog'
This commit is contained in:
@@ -19,7 +19,7 @@ const propTypes = {
|
||||
class RepoListView extends React.Component {
|
||||
|
||||
render() {
|
||||
let { currentRepoInfo, repoList } = this.props;
|
||||
let { currentRepoInfo, currentPath, repoList } = this.props;
|
||||
if (currentRepoInfo) {
|
||||
repoList = [];
|
||||
repoList.push(currentRepoInfo);
|
||||
@@ -30,6 +30,8 @@ class RepoListView extends React.Component {
|
||||
return (
|
||||
<RepoListItem
|
||||
key={index}
|
||||
isCurrentRepo={currentRepoInfo ? true : false}
|
||||
currentPath={currentPath}
|
||||
repo={repoItem}
|
||||
initToShowChildren={this.props.initToShowChildren}
|
||||
selectedRepo={this.props.selectedRepo}
|
||||
|
Reference in New Issue
Block a user