mirror of
https://github.com/ansible/awx.git
synced 2026-03-03 01:38:50 -03: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 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]} />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user