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:
@@ -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}
|
||||
|
Reference in New Issue
Block a user