mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 01:17:37 -02:30
Display prompt on launch passwords properly
This commit is contained in:
@@ -75,7 +75,7 @@ function CredentialDetail({ i18n, credential }) {
|
|||||||
|
|
||||||
const { error, dismissError } = useDismissableError(deleteError);
|
const { error, dismissError } = useDismissableError(deleteError);
|
||||||
|
|
||||||
const renderDetail = ({ id, label, type }) => {
|
const renderDetail = ({ id, label, type, ask_at_runtime }) => {
|
||||||
let detail;
|
let detail;
|
||||||
|
|
||||||
if (type === 'boolean') {
|
if (type === 'boolean') {
|
||||||
@@ -96,6 +96,10 @@ function CredentialDetail({ i18n, credential }) {
|
|||||||
isEncrypted={isEncrypted}
|
isEncrypted={isEncrypted}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
} else if (ask_at_runtime && inputs[id] === 'ASK') {
|
||||||
|
detail = (
|
||||||
|
<Detail key={id} label={label} value={i18n._(t`Prompt on launch`)} />
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
detail = <Detail key={id} label={label} value={inputs[id]} />;
|
detail = <Detail key={id} label={label} value={inputs[id]} />;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user