mirror of
https://github.com/ansible/awx.git
synced 2026-03-03 01:38:50 -03:30
Add SCM Type detail to job details
This commit is contained in:
@@ -75,6 +75,14 @@ function JobDetail({ job, inventorySourceLabels }) {
|
|||||||
workflow_job: t`Workflow Job`,
|
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 () => {
|
const deleteJob = async () => {
|
||||||
try {
|
try {
|
||||||
await getJobModel(job.type).destroy(job.id);
|
await getJobModel(job.type).destroy(job.id);
|
||||||
@@ -241,6 +249,11 @@ function JobDetail({ job, inventorySourceLabels }) {
|
|||||||
label={t`Job Type`}
|
label={t`Job Type`}
|
||||||
value={jobTypes[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} />
|
<LaunchedByDetail dataCy="job-launched-by" job={job} />
|
||||||
{renderInventoryDetail()}
|
{renderInventoryDetail()}
|
||||||
{inventory_source && (
|
{inventory_source && (
|
||||||
|
|||||||
Reference in New Issue
Block a user