mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-03 07:55:36 +00:00
[file chooser] directly open current folder for 'mv/cp dialog'
This commit is contained in:
@@ -158,6 +158,7 @@ class CopyDirent extends React.Component {
|
||||
<ModalBody>
|
||||
<FileChooser
|
||||
repoID={this.props.repoID}
|
||||
currentPath={this.props.path}
|
||||
onDirentItemClick={this.onDirentItemClick}
|
||||
onRepoItemClick={this.onRepoItemClick}
|
||||
mode={mode}
|
||||
|
@@ -255,7 +255,8 @@ class LibSubFolderSerGroupPermissionDialog extends React.Component {
|
||||
if (this.state.showFileChooser) {
|
||||
return (
|
||||
<div>
|
||||
<FileChooser repoID={this.props.repoID}
|
||||
<FileChooser
|
||||
repoID={this.props.repoID}
|
||||
mode={'only_current_library'}
|
||||
onDirentItemClick={this.toggleSubFolder}
|
||||
onRepoItemClick={this.onRepoItemClick}
|
||||
|
@@ -230,7 +230,8 @@ class LibSubFolderSetUserPermissionDialog extends React.Component {
|
||||
if (this.state.showFileChooser) {
|
||||
return (
|
||||
<div>
|
||||
<FileChooser repoID={this.props.repoID}
|
||||
<FileChooser
|
||||
repoID={this.props.repoID}
|
||||
mode={'only_current_library'}
|
||||
onDirentItemClick={this.toggleSubFolder}
|
||||
onRepoItemClick={this.onRepoItemClick}
|
||||
|
@@ -172,6 +172,7 @@ class MoveDirent extends React.Component {
|
||||
<ModalBody>
|
||||
<FileChooser
|
||||
repoID={this.props.repoID}
|
||||
currentPath={this.props.path}
|
||||
onDirentItemClick={this.onDirentItemClick}
|
||||
onRepoItemClick={this.onRepoItemClick}
|
||||
mode={mode}
|
||||
|
Reference in New Issue
Block a user