1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-10 11:21:29 +00:00

fix file suffixes

This commit is contained in:
Michael An
2019-04-23 22:51:20 +08:00
parent 0897a3e1b7
commit e3d3b242b8
6 changed files with 17 additions and 17 deletions

View File

@@ -47,7 +47,7 @@ class InsertRepoImageDialog extends React.Component {
render() {
const toggle = this.props.toggleCancel;
const fileSuffix = ['jpg', 'png', 'jpeg', 'gif', 'bmp'];
const fileSuffixes = ['jpg', 'png', 'jpeg', 'gif', 'bmp'];
let imageUrl;
if (this.state.repo) {
imageUrl = siteRoot + 'thumbnail/' + this.state.repo.repo_id + '/1024' + this.state.selectedPath;
@@ -64,7 +64,7 @@ class InsertRepoImageDialog extends React.Component {
onDirentItemClick={this.onDirentItemClick}
onRepoItemClick={this.onRepoItemClick}
mode="current_repo_and_other_repos"
fileSuffix={fileSuffix}
fileSuffixes={fileSuffixes}
/>
</div>
<div className="insert-image-container col-6">