Password component
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
## 1.3.0
|
## 1.3.0
|
||||||
* Skynet support
|
* Skynet support
|
||||||
* Synchronize UI major/minor version with `repertory` major/minor version
|
* Synchronize UI major/minor version with `repertory` major/minor version
|
||||||
|
* Added `Password` component
|
||||||
|
|
||||||
## 1.1.5
|
## 1.1.5
|
||||||
* \#38: Enhance new repertory release available notification
|
* \#38: Enhance new repertory release available notification
|
||||||
|
|||||||
@@ -114,14 +114,13 @@ export default class extends Component {
|
|||||||
onClick={this.handleActionClick}>
|
onClick={this.handleActionClick}>
|
||||||
<u>{this.state.button_text}</u>
|
<u>{this.state.button_text}</u>
|
||||||
</a>
|
</a>
|
||||||
<input
|
<input autoFocus={this.props.autoFocus}
|
||||||
onChange={this.handlePasswordChanged}
|
className={'PasswordInput'}
|
||||||
onKeyUp={this.handlePasswordKeyUp}
|
disabled={this.props.readOnly || (this.state.button_text === 'clear')}
|
||||||
autoFocus={this.props.autoFocus}
|
onChange={this.handlePasswordChanged}
|
||||||
className={'PasswordInput'}
|
onKeyUp={this.handlePasswordKeyUp}
|
||||||
disabled={this.props.readOnly || (this.state.button_text === 'clear')}
|
type={this.state.show_password ? 'text' : 'password'}
|
||||||
type={this.state.show_password ? 'text' : 'password'}
|
value={(this.state.button_text === 'confirm') ? this.state.password2 : this.state.password} />
|
||||||
value={(this.state.button_text === 'confirm') ? this.state.password2 : this.state.password} />
|
|
||||||
<a href={'#'}
|
<a href={'#'}
|
||||||
className={'PasswordShowHide'}
|
className={'PasswordShowHide'}
|
||||||
onClick={this.handleShowHideClick}>
|
onClick={this.handleShowHideClick}>
|
||||||
|
|||||||
Reference in New Issue
Block a user