mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 16:58:46 -03:30
Fixes navigation bug in InventoryAdd Adds SCM Branch field on JTForm
This commit is contained in:
@@ -196,7 +196,12 @@ class JobTemplateDetail extends Component {
|
|||||||
) : (
|
) : (
|
||||||
renderMissingDataDetail(i18n._(t`Project`))
|
renderMissingDataDetail(i18n._(t`Project`))
|
||||||
)}
|
)}
|
||||||
<Detail label={i18n._(t`SCM Branch`)} value={template.scm_branch} />
|
{template.scm_branch && (
|
||||||
|
<Detail
|
||||||
|
label={i18n._(t`SCM Branch`)}
|
||||||
|
value={template.scm_branch}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
<Detail label={i18n._(t`Playbook`)} value={playbook} />
|
<Detail label={i18n._(t`Playbook`)} value={playbook} />
|
||||||
<Detail label={i18n._(t`Forks`)} value={forks || '0'} />
|
<Detail label={i18n._(t`Forks`)} value={forks || '0'} />
|
||||||
<Detail label={i18n._(t`Limit`)} value={limit} />
|
<Detail label={i18n._(t`Limit`)} value={limit} />
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ describe('<JobTemplateForm />', () => {
|
|||||||
project: {
|
project: {
|
||||||
id: 3,
|
id: 3,
|
||||||
name: 'qux',
|
name: 'qux',
|
||||||
|
allow_override: true,
|
||||||
},
|
},
|
||||||
labels: { results: [{ name: 'Sushi', id: 1 }, { name: 'Major', id: 2 }] },
|
labels: { results: [{ name: 'Sushi', id: 1 }, { name: 'Major', id: 2 }] },
|
||||||
credentials: [
|
credentials: [
|
||||||
|
|||||||
Reference in New Issue
Block a user