From 9c8e4c64eaece3d246aef1061c2882210ad4a410 Mon Sep 17 00:00:00 2001 From: Ildar Kamalov Date: Wed, 20 Feb 2019 13:33:42 +0300 Subject: [PATCH] Disable save button if key or certificate is empty --- client/src/components/Settings/Encryption/Form.js | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/components/Settings/Encryption/Form.js b/client/src/components/Settings/Encryption/Form.js index 3587d2bd..65867986 100644 --- a/client/src/components/Settings/Encryption/Form.js +++ b/client/src/components/Settings/Encryption/Form.js @@ -298,6 +298,7 @@ let Form = (props) => { || submitting || processingConfig || processingValidate + || (isEnabled && (!privateKey || !certificateChain)) || (privateKey && !valid_key) || (certificateChain && !valid_cert) }