1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-03 07:55:36 +00:00

optimize code (#5300)

* optimize code

* update code

* optimize code
This commit is contained in:
杨顺强
2022-11-08 22:35:41 +08:00
committed by GitHub
parent c97947ea2a
commit 53e2e70d8c
5 changed files with 24 additions and 18 deletions

View File

@@ -157,6 +157,12 @@ class CustomPermissionEditor extends React.Component {
<span>{gettext('Download')}</span>
</Label>
</FormGroup>
<FormGroup check>
<Label check>
<Input type="checkbox" onChange={this.onChangePermission('create')} checked={permission.create}/>
<span>{gettext('Create')}</span>
</Label>
</FormGroup>
<FormGroup check>
<Label check>
<Input type="checkbox" onChange={this.onChangePermission('modify')} checked={permission.modify}/>
@@ -168,7 +174,7 @@ class CustomPermissionEditor extends React.Component {
target={'modify-tip'}
placement='bottom'
isOpen={this.state.tooltipOpen}>
({gettext('Modify includes modify file, create file and folder, move/rename file and folder')})
({gettext('Modify includes modify file, move/rename file and folder')})
</Tooltip>
</Label>
</FormGroup>