- client: fixed values for settings validation

Closes #729
This commit is contained in:
Ildar Kamalov 2019-04-28 11:43:15 +03:00
parent 7d2df26335
commit d24f208f98

View File

@ -63,11 +63,19 @@ const renderInterfaces = (interfaces => (
class Settings extends Component {
componentDidMount() {
const { web, dns } = this.props.config;
const {
webIp, webPort, dnsIp, dnsPort,
} = this.props;
this.props.validateForm({
web,
dns,
web: {
ip: webIp,
port: webPort,
},
dns: {
ip: dnsIp,
port: dnsPort,
},
});
}