From 1665acd58abcd7d519a42b962e5789e297060269 Mon Sep 17 00:00:00 2001 From: nixocio Date: Wed, 16 Jun 2021 16:00:57 -0400 Subject: [PATCH] Allow edit fields to custom credential types The logic to disable certain fields is just valid for `encrypted` fields. Since the multiline field - no secret, does not have a button to `replace` the content to null - it was always set to disabled. Fix: https://github.com/ansible/awx/issues/10079 --- .../Credential/shared/CredentialFormFields/CredentialField.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/awx/ui_next/src/screens/Credential/shared/CredentialFormFields/CredentialField.jsx b/awx/ui_next/src/screens/Credential/shared/CredentialFormFields/CredentialField.jsx index 2de7ef5491..d33dab5d4e 100644 --- a/awx/ui_next/src/screens/Credential/shared/CredentialFormFields/CredentialField.jsx +++ b/awx/ui_next/src/screens/Credential/shared/CredentialFormFields/CredentialField.jsx @@ -106,6 +106,7 @@ function CredentialInput({ fieldOptions, credentialKind, ...rest }) { isLoading={fileIsUploading} allowEditingUploadedText validated={isValid ? 'default' : 'error'} + isDisabled={false} /> ); }