From ff00afb5d7ed1356d0752f75a33d6adfb392ca8c Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Mon, 19 Apr 2021 11:32:26 +0100 Subject: [PATCH] Fix project credential secret reset handling Part of #2868 --- .../editor-client/src/js/ui/projects/projectSettings.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/projects/projectSettings.js b/packages/node_modules/@node-red/editor-client/src/js/ui/projects/projectSettings.js index c39ac97be..336893a59 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/projects/projectSettings.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/projects/projectSettings.js @@ -928,11 +928,11 @@ RED.projects.settings = (function() { saveDisabled = isFlowInvalid || credFileLabelText.text()===""; - if (credentialSecretExistingInput.is(":visible")) { + if (credentialSecretExistingRow.is(":visible")) { credentialSecretExistingInput.toggleClass("input-error", credentialSecretExistingInput.val() === ""); saveDisabled = saveDisabled || credentialSecretExistingInput.val() === ""; } - if (credentialSecretNewInput.is(":visible")) { + if (credentialSecretNewRow.is(":visible")) { credentialSecretNewInput.toggleClass("input-error", credentialSecretNewInput.val() === ""); saveDisabled = saveDisabled || credentialSecretNewInput.val() === ""; } @@ -1130,7 +1130,7 @@ RED.projects.settings = (function() { } if (credentialSecretResetButton.hasClass('selected') || credentialSecretEditButton.hasClass('selected')) { payload.credentialSecret = credentialSecretNewInput.val(); - if (credentialSecretExistingInput.is(":visible")) { + if (credentialSecretExistingRow.is(":visible")) { payload.currentCredentialSecret = credentialSecretExistingInput.val(); } }