1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 23:20:51 +00:00

repair bug

This commit is contained in:
shanshuirenjia
2018-12-22 11:17:03 +08:00
parent ff163bf80d
commit 26dc768bac
5 changed files with 18 additions and 9 deletions

View File

@@ -279,12 +279,12 @@ class GenerateShareLink extends React.Component {
</FormGroup>
<FormGroup check className="permission">
<Label check>
<Input type="radio" name="radio1" defaultChecked={true} onChange={this.setPermission('previewAndDownload')}/>{' '}{gettext('Preview and download')}
<Input type="radio" name="radio1" defaultChecked={true} onChange={() => this.setPermission('previewAndDownload')}/>{' '}{gettext('Preview and download')}
</Label>
</FormGroup>
<FormGroup check className="permission">
<Label check>
<Input type="radio" name="radio1" onChange={this.setPermission('preview')} />{' '}{gettext('Preview only')}
<Input type="radio" name="radio1" onChange={() => this.setPermission('preview')} />{' '}{gettext('Preview only')}
</Label>
</FormGroup>
<Label className="err-message">{gettext(this.state.errorInfo)}</Label><br />