Password component

This commit is contained in:
2020-04-06 10:59:50 -05:00
parent d615ff0669
commit 31a0ec1567
2 changed files with 8 additions and 8 deletions

View File

@@ -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

View File

@@ -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}>