- client: validate encryption if enabled

Closes #700
This commit is contained in:
Ildar Kamalov 2019-04-04 14:54:57 +03:00
parent b453d9f41d
commit 4d217583b0
1 changed files with 3 additions and 1 deletions

View File

@ -9,8 +9,10 @@ import Card from '../../ui/Card';
class Encryption extends Component {
componentDidMount() {
if (this.props.encryption.enabled) {
this.props.validateTlsConfig(this.props.encryption);
}
}
handleFormSubmit = (values) => {
this.props.setTlsConfig(values);