mirror of
https://github.com/ansible/awx.git
synced 2026-03-06 03:01:06 -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:
@@ -100,12 +100,19 @@ function CredentialDetail({ credential }) {
|
|||||||
|
|
||||||
const { error, dismissError } = useDismissableError(deleteError);
|
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]) {
|
if (inputSources[id]) {
|
||||||
return (
|
return (
|
||||||
<React.Fragment key={id}>
|
<React.Fragment key={id}>
|
||||||
<Detail
|
<Detail
|
||||||
dataCy={`credential-${id}-detail`}
|
dataCy={`credential-${id}-detail`}
|
||||||
|
helpText={help_text}
|
||||||
id={`credential-${id}-detail`}
|
id={`credential-${id}-detail`}
|
||||||
fullWidth
|
fullWidth
|
||||||
label={<span>{label} *</span>}
|
label={<span>{label} *</span>}
|
||||||
@@ -151,6 +158,7 @@ function CredentialDetail({ credential }) {
|
|||||||
key={id}
|
key={id}
|
||||||
label={label}
|
label={label}
|
||||||
value={t`Encrypted`}
|
value={t`Encrypted`}
|
||||||
|
helpText={help_text}
|
||||||
isEncrypted
|
isEncrypted
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
@@ -160,6 +168,7 @@ function CredentialDetail({ credential }) {
|
|||||||
return (
|
return (
|
||||||
<Detail
|
<Detail
|
||||||
dataCy={`credential-${id}-detail`}
|
dataCy={`credential-${id}-detail`}
|
||||||
|
helpText={help_text}
|
||||||
id={`credential-${id}-detail`}
|
id={`credential-${id}-detail`}
|
||||||
key={id}
|
key={id}
|
||||||
label={label}
|
label={label}
|
||||||
@@ -175,6 +184,7 @@ function CredentialDetail({ credential }) {
|
|||||||
key={id}
|
key={id}
|
||||||
label={label}
|
label={label}
|
||||||
value={inputs[id]}
|
value={inputs[id]}
|
||||||
|
helpText={help_text}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user