| | |
| | | passwordMethod: 'passwordCommand', |
| | | passwordCreate: null |
| | | }; |
| | | this.handleTextChange = this.handleTextChange.bind(this); |
| | | this.handlePasswordMethodChange = this.handlePasswordMethodChange.bind(this); |
| | | } |
| | | |
| | | handleTextChange = event => { |
| | | handlePasswordMethodChange = event => { |
| | | event.preventDefault(); |
| | | this.setState({[event.target.name]: event.target.value}); |
| | | if (event.target.name === 'passwordMethod') { |
| | |
| | | <FormSelect |
| | | value={this.state.passwordMethod} |
| | | name={'passwordMethod'} |
| | | onChange={this.handleTextChange} |
| | | onChange={this.handlePasswordMethodChange} |
| | | > |
| | | {passwordMethods |
| | | .map((entry) => <FormOption label={entry[1]} value={entry[0]} |
| | |
| | | }; |
| | | |
| | | RepoPasswordConfigPanel.defaultProps = { |
| | | editExistingRepo: 'none' |
| | | encryption: 'none' |
| | | }; |
| | | |
| | | export default RepoPasswordConfigPanel; |