mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-24 14:05:45 +03:00
cherry-pick: 700 validate only enabled encryption form
Merge in DNS/adguard-home from 700-validate to master Updates #700. Squashed commit of the following: commit 9cd9ff2d23352e00c7782cf68195809111c832e5 Author: Ildar Kamalov <ik@adguard.com> Date: Wed Apr 6 18:50:11 2022 +0300 client: validate only enabled encryption form
This commit is contained in:
parent
d17c6c6bb3
commit
04db7db607
1 changed files with 3 additions and 1 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue