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