1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-10 19:29:56 +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

@@ -32,7 +32,7 @@ class FileChooser extends React.Component {
repoList: [],
currentRepoInfo: null,
selectedRepo: null,
selectedPath: '',
selectedPath: this.props.currentPath || '/',
isSearching: false,
isResultGot: false,
searchInfo: '',
@@ -132,7 +132,7 @@ class FileChooser extends React.Component {
}
this.setState({
selectedRepo: repo,
selectedPath: '',
selectedPath: '/',
});
}
@@ -386,6 +386,7 @@ class FileChooser extends React.Component {
<RepoListView
initToShowChildren={true}
currentRepoInfo={this.state.currentRepoInfo}
currentPath={this.props.currentPath}
selectedRepo={this.state.selectedRepo}
selectedPath={this.state.selectedPath}
onRepoItemClick={this.onRepoItemClick}
@@ -429,6 +430,7 @@ class FileChooser extends React.Component {
<RepoListView
initToShowChildren={true}
currentRepoInfo={this.state.currentRepoInfo}
currentPath={this.props.currentPath}
selectedRepo={this.state.selectedRepo}
selectedPath={this.state.selectedPath}
onRepoItemClick={this.onRepoItemClick}