1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-20 10:58:33 +00:00

Org department (#3194)

* add org department

* delete hash

* update

* update

* render repo icon

* update dialogs
This commit is contained in:
Michael An
2019-04-01 13:38:25 +08:00
committed by Daniel Pan
parent 8b6ed0eede
commit 597d22c403
17 changed files with 1129 additions and 9 deletions

View File

@@ -145,7 +145,7 @@ class AddOrgUserDialog extends React.Component {
<FormGroup>
<Label for="userPwd">{gettext('Password')}</Label>
<InputGroup className="passwd">
<Input id="userPwd" innerRef={input => {this.passwdInput = input}} value={this.state.password || ''} onChange={this.inputPassword} />
<Input id="userPwd" innerRef={input => {this.passwdInput = input;}} value={this.state.password || ''} onChange={this.inputPassword} />
<InputGroupAddon addonType="append">
<Button onClick={this.togglePasswordVisible}><i className={`link-operation-icon fas ${this.state.isPasswordVisible ? 'fa-eye-slash' : 'fa-eye'}`}></i></Button>
<Button onClick={this.generatePassword}><i className="link-operation-icon fas fa-magic"></i></Button>
@@ -154,7 +154,7 @@ class AddOrgUserDialog extends React.Component {
</FormGroup>
<FormGroup>
<Label for="userPwdNew">{gettext('Confirm Password')}</Label>
<Input id="userPwdNew" innerRef={input => {this.passwdNewInput = input}} className="passwd" value={this.state.passwdnew || ''} onChange={this.inputPasswordNew} />
<Input id="userPwdNew" innerRef={input => {this.passwdNewInput = input;}} className="passwd" value={this.state.passwdnew || ''} onChange={this.inputPasswordNew} />
</FormGroup>
</Form>
<Label className="err-message">{gettext(this.state.errMessage)}</Label>