1
0
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:
llj
2021-12-15 14:55:16 +08:00
parent eab3ba2f6d
commit 15e2acc21f
7 changed files with 29 additions and 10 deletions

View File

@@ -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}