mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-12-17 05:01:35 +03:00
Merge pull request #208 in DNS/adguard-dns from fix/729 to master
* commit 'd24f208f98c08155282eb3061fd28e2e149e296b': - client: fixed values for settings validation
This commit is contained in:
commit
2cb2b3585f
@ -63,11 +63,19 @@ const renderInterfaces = (interfaces => (
|
|||||||
|
|
||||||
class Settings extends Component {
|
class Settings extends Component {
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
const { web, dns } = this.props.config;
|
const {
|
||||||
|
webIp, webPort, dnsIp, dnsPort,
|
||||||
|
} = this.props;
|
||||||
|
|
||||||
this.props.validateForm({
|
this.props.validateForm({
|
||||||
web,
|
web: {
|
||||||
dns,
|
ip: webIp,
|
||||||
|
port: webPort,
|
||||||
|
},
|
||||||
|
dns: {
|
||||||
|
ip: dnsIp,
|
||||||
|
port: dnsPort,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user