1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-05 17:02:47 +00:00

[fix] close dialog (#2910)

This commit is contained in:
Michael An
2019-01-30 11:23:28 +08:00
committed by Daniel Pan
parent 4bce84ffa5
commit 68ea300225
3 changed files with 3 additions and 3 deletions

View File

@@ -86,7 +86,7 @@ class AddRelatedFileDialog extends React.Component {
let subtitle = gettext('Select related file for {placeholder}');
subtitle = subtitle.replace('{placeholder}', '<span class="sf-font">' + Utils.HTMLescape(this.props.dirent.name) + '</span>');
return (
<Modal isOpen={true} className="sf-add-related-file">
<Modal isOpen={true} className="sf-add-related-file" toggle={this.toggle} >
<ModalHeader toggle={this.toggle}>{gettext('Select File')}</ModalHeader>
<ModalBody>
<div className="related-file-subtitle" dangerouslySetInnerHTML={{__html: subtitle}}></div>