mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-10 03:11:07 +00:00
add file filter
This commit is contained in:
@@ -47,6 +47,7 @@ class InsertRepoImageDialog extends React.Component {
|
||||
|
||||
render() {
|
||||
const toggle = this.props.toggleCancel;
|
||||
const fileSuffix = ['jpg', 'png', 'jpeg', 'gif', 'bmp'];
|
||||
let imageUrl;
|
||||
if (this.state.repo) {
|
||||
imageUrl = siteRoot + 'thumbnail/' + this.state.repo.repo_id + '/1024' + this.state.selectedPath;
|
||||
@@ -63,6 +64,7 @@ class InsertRepoImageDialog extends React.Component {
|
||||
onDirentItemClick={this.onDirentItemClick}
|
||||
onRepoItemClick={this.onRepoItemClick}
|
||||
mode="current_repo_and_other_repos"
|
||||
fileSuffix={fileSuffix}
|
||||
/>
|
||||
</div>
|
||||
<div className="insert-image-container col-6">
|
||||
|
Reference in New Issue
Block a user