mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Merge pull request #12145 from marshmalien/4057-project-scm-type-details
Add SCM Type detail to job detail view
This commit is contained in:
commit
3610008699
@ -75,6 +75,14 @@ function JobDetail({ job, inventorySourceLabels }) {
|
||||
workflow_job: t`Workflow Job`,
|
||||
};
|
||||
|
||||
const scmTypes = {
|
||||
'': t`Manual`,
|
||||
git: t`Git`,
|
||||
svn: t`Subversion`,
|
||||
insights: t`Red Hat Insights`,
|
||||
archive: t`Remote Archive`,
|
||||
};
|
||||
|
||||
const deleteJob = async () => {
|
||||
try {
|
||||
await getJobModel(job.type).destroy(job.id);
|
||||
@ -241,6 +249,11 @@ function JobDetail({ job, inventorySourceLabels }) {
|
||||
label={t`Job Type`}
|
||||
value={jobTypes[job.type]}
|
||||
/>
|
||||
<Detail
|
||||
dataCy="source-control-type"
|
||||
label={t`Source Control Type`}
|
||||
value={scmTypes[job.scm_type]}
|
||||
/>
|
||||
<LaunchedByDetail dataCy="job-launched-by" job={job} />
|
||||
{renderInventoryDetail()}
|
||||
{inventory_source && (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user