1
0
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:
Michael An
2019-04-23 17:24:17 +08:00
parent 2eb1e15b05
commit 31228181bf
6 changed files with 20 additions and 0 deletions

View File

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