mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 02:19:58 -03:30
Add help text popovers to /#/credentials details fields
Add help text popovers to /#/credentials details fields See: https://github.com/ansible/awx/issues/11862
This commit is contained in:
parent
6a63af83c0
commit
d74e258079
@ -100,12 +100,19 @@ function CredentialDetail({ credential }) {
|
||||
|
||||
const { error, dismissError } = useDismissableError(deleteError);
|
||||
|
||||
const renderDetail = ({ id, label, type, ask_at_runtime }) => {
|
||||
const renderDetail = ({
|
||||
id,
|
||||
label,
|
||||
type,
|
||||
ask_at_runtime,
|
||||
help_text = '',
|
||||
}) => {
|
||||
if (inputSources[id]) {
|
||||
return (
|
||||
<React.Fragment key={id}>
|
||||
<Detail
|
||||
dataCy={`credential-${id}-detail`}
|
||||
helpText={help_text}
|
||||
id={`credential-${id}-detail`}
|
||||
fullWidth
|
||||
label={<span>{label} *</span>}
|
||||
@ -151,6 +158,7 @@ function CredentialDetail({ credential }) {
|
||||
key={id}
|
||||
label={label}
|
||||
value={t`Encrypted`}
|
||||
helpText={help_text}
|
||||
isEncrypted
|
||||
/>
|
||||
);
|
||||
@ -160,6 +168,7 @@ function CredentialDetail({ credential }) {
|
||||
return (
|
||||
<Detail
|
||||
dataCy={`credential-${id}-detail`}
|
||||
helpText={help_text}
|
||||
id={`credential-${id}-detail`}
|
||||
key={id}
|
||||
label={label}
|
||||
@ -175,6 +184,7 @@ function CredentialDetail({ credential }) {
|
||||
key={id}
|
||||
label={label}
|
||||
value={inputs[id]}
|
||||
helpText={help_text}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user