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
* Skynet support
* Synchronize UI major/minor version with `repertory` major/minor version
* Added `Password` component
## 1.1.5
* \#38: Enhance new repertory release available notification

View File

@@ -114,12 +114,11 @@ export default class extends Component {
onClick={this.handleActionClick}>
<u>{this.state.button_text}</u>
</a>
<input
onChange={this.handlePasswordChanged}
onKeyUp={this.handlePasswordKeyUp}
autoFocus={this.props.autoFocus}
<input autoFocus={this.props.autoFocus}
className={'PasswordInput'}
disabled={this.props.readOnly || (this.state.button_text === 'clear')}
onChange={this.handlePasswordChanged}
onKeyUp={this.handlePasswordKeyUp}
type={this.state.show_password ? 'text' : 'password'}
value={(this.state.button_text === 'confirm') ? this.state.password2 : this.state.password} />
<a href={'#'}