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

View File

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

View File

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

View File

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

View File

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