mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-06 09:21:54 +00:00
Make create-repo-dialog consistent with share-dialog
This commit is contained in:
@@ -184,17 +184,21 @@ class CreateRepoDialog extends React.Component {
|
||||
<Input type="checkbox" id="encrypt" onChange={this.onEncrypted}/>
|
||||
<Label for="encrypt">{gettext('Encrypt')}</Label>
|
||||
</FormGroup>
|
||||
{!this.state.disabled &&
|
||||
<FormGroup>
|
||||
{/* todo translate */}
|
||||
<Label for="passwd1" className="font-weight-bold">{gettext('Password')}{' '}</Label><span className="tip">{gettext('(at least 8 characters)')}</span>
|
||||
<Label for="passwd1" className="font-weight-bold">{gettext('Password')}</Label><span className="tip">{' '}{gettext('(at least 8 characters)')}</span>
|
||||
<Input
|
||||
id="passwd1"
|
||||
type="password"
|
||||
disabled={this.state.disabled}
|
||||
value={this.state.password1}
|
||||
onChange={this.handlePassword1Change}
|
||||
autoComplete="new-password"
|
||||
/>
|
||||
</FormGroup>
|
||||
}
|
||||
{!this.state.disabled &&
|
||||
<FormGroup>
|
||||
<Label for="passwd2" className="font-weight-bold">{gettext('Password again')}</Label>
|
||||
<Input
|
||||
@@ -203,8 +207,10 @@ class CreateRepoDialog extends React.Component {
|
||||
disabled={this.state.disabled}
|
||||
value={this.state.password2}
|
||||
onChange={this.handlePassword2Change}
|
||||
autoComplete="new-password"
|
||||
/>
|
||||
</FormGroup>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</Form>
|
||||
|
Reference in New Issue
Block a user