- 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

View File

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