Skip to content

Commit

Permalink
Pull request: 700 validate only enabled encryption form
Browse files Browse the repository at this point in the history
Merge in DNS/adguard-home from 700-validate to master

Updates #700.

Squashed commit of the following:

commit 9cd9ff2
Author: Ildar Kamalov <ik@adguard.com>
Date:   Wed Apr 6 18:50:11 2022 +0300

    client: validate only enabled encryption form
  • Loading branch information
IldarKamalov authored and EugeneOne1 committed Apr 6, 2022
1 parent c70f941 commit e9e0b7c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/src/components/Settings/Encryption/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ class Encryption extends Component {

handleFormChange = debounce((values) => {
const submitValues = this.getSubmitValues(values);
this.props.validateTlsConfig(submitValues);
if (submitValues.enabled) {
this.props.validateTlsConfig(submitValues);
}
}, DEBOUNCE_TIMEOUT);

getInitialValues = (data) => {
Expand Down

0 comments on commit e9e0b7c

Please sign in to comment.