1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-04 08:28:11 +00:00

repair bug

This commit is contained in:
shanshuirenjia
2018-12-17 11:11:45 +08:00
parent cea43ba325
commit 11a0db5759
2 changed files with 11 additions and 5 deletions

View File

@@ -152,9 +152,9 @@ class CreateRepoDialog extends React.Component {
<ModalBody>
<Form>
<FormGroup>
<Label for="fileName">{gettext('Name')}</Label>
<Label for="repoName">{gettext('Name')}</Label>
<Input
id="fileName"
id="repoName"
onKeyPress={this.handleKeyPress}
innerRef={input => {this.newInput = input;}}
value={this.state.repoName}
@@ -165,8 +165,8 @@ class CreateRepoDialog extends React.Component {
<FormGroup>
<Label for="exampleSelect">{gettext('Permission')}</Label>
<Input type="select" name="select" id="exampleSelect" onChange={this.onPermissionChange} value={this.state.permission}>
<option value='rw'>rw</option>
<option value='r'>r</option>
<option value='rw'>{gettext('Read-Write')}</option>
<option value='r'>{gettext('Read-Only')}</option>
</Input>
</FormGroup>
)}