Fixed processing config

This commit is contained in:
Ildar Kamalov 2019-02-19 15:46:29 +03:00
parent cca6998efe
commit 0b7f0396de
2 changed files with 4 additions and 6 deletions

View File

@ -47,7 +47,7 @@ let Form = (props) => {
change, change,
invalid, invalid,
submitting, submitting,
processing, processingConfig,
processingValidate, processingValidate,
not_after, not_after,
valid_chain, valid_chain,
@ -278,7 +278,7 @@ let Form = (props) => {
disabled={ disabled={
invalid invalid
|| submitting || submitting
|| processing || processingConfig
|| processingValidate || processingValidate
|| (privateKey && !valid_key) || (privateKey && !valid_key)
|| (certificateChain && !valid_cert) || (certificateChain && !valid_cert)
@ -289,7 +289,7 @@ let Form = (props) => {
<button <button
type="button" type="button"
className="btn btn-secondary btn-standart" className="btn btn-secondary btn-standart"
disabled={submitting || processing} disabled={submitting || processingConfig}
onClick={() => clearFields(change)} onClick={() => clearFields(change)}
> >
<Trans>reset_settings</Trans> <Trans>reset_settings</Trans>
@ -309,7 +309,7 @@ Form.propTypes = {
submitting: PropTypes.bool.isRequired, submitting: PropTypes.bool.isRequired,
invalid: PropTypes.bool.isRequired, invalid: PropTypes.bool.isRequired,
initialValues: PropTypes.object.isRequired, initialValues: PropTypes.object.isRequired,
processing: PropTypes.bool.isRequired, processingConfig: PropTypes.bool.isRequired,
processingValidate: PropTypes.bool.isRequired, processingValidate: PropTypes.bool.isRequired,
status_key: PropTypes.string, status_key: PropTypes.string,
not_after: PropTypes.string, not_after: PropTypes.string,

View File

@ -45,8 +45,6 @@ class Encryption extends Component {
certificate_chain, certificate_chain,
private_key, private_key,
}} }}
processing={encryption.processingConfig}
processingValidate={encryption.processingValidate}
onSubmit={this.handleFormSubmit} onSubmit={this.handleFormSubmit}
onChange={this.handleFormChange} onChange={this.handleFormChange}
{...this.props.encryption} {...this.props.encryption}