+ client: add clients forms validation and cache findClients function

This commit is contained in:
Artem Baskal
2019-12-12 21:48:17 +03:00
parent cddf3ca01e
commit 2e493e0226
16 changed files with 187 additions and 162 deletions

View File

@@ -6,7 +6,7 @@ import { Trans, withNamespaces } from 'react-i18next';
import flow from 'lodash/flow';
import {
renderField,
renderInputField,
renderSelectField,
renderRadioField,
toNumber,
@@ -117,7 +117,7 @@ let Form = (props) => {
<Field
id="server_name"
name="server_name"
component={renderField}
component={renderInputField}
type="text"
className="form-control"
placeholder={t('encryption_server_enter')}
@@ -154,7 +154,7 @@ let Form = (props) => {
<Field
id="port_https"
name="port_https"
component={renderField}
component={renderInputField}
type="number"
className="form-control"
placeholder={t('encryption_https')}
@@ -176,7 +176,7 @@ let Form = (props) => {
<Field
id="port_dns_over_tls"
name="port_dns_over_tls"
component={renderField}
component={renderInputField}
type="number"
className="form-control"
placeholder={t('encryption_dot')}
@@ -252,7 +252,7 @@ let Form = (props) => {
<Field
id="certificate_path"
name="certificate_path"
component={renderField}
component={renderInputField}
type="text"
className="form-control"
placeholder={t('encryption_certificate_path')}
@@ -321,7 +321,7 @@ let Form = (props) => {
<Field
id="private_key_path"
name="private_key_path"
component={renderField}
component={renderInputField}
type="text"
className="form-control"
placeholder={t('encryption_private_key_path')}