1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-05 00:43:53 +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

@@ -71,7 +71,7 @@ class ListRelatedFileDialog extends React.Component {
render() {
return (
<Modal isOpen={true} size={this.state.direntList.length > 0 ? 'lg' : 'sm'}>
<Modal isOpen={true} toggle={this.toggle} size={this.state.direntList.length > 0 ? 'lg' : 'sm'}>
<ModalHeader toggle={this.toggle}>{gettext('Related Files')}</ModalHeader>
<ModalBody className={this.state.direntList.length > 0 ? 'list-related-file-body' : ''}>
{