From dd47829bdb7d5b98d2a395dc6462e1fee21d98ea Mon Sep 17 00:00:00 2001 From: Marliana Lara Date: Mon, 2 May 2022 16:25:46 -0400 Subject: [PATCH] Add SCM Type detail to job details --- awx/ui/src/screens/Job/JobDetail/JobDetail.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/awx/ui/src/screens/Job/JobDetail/JobDetail.js b/awx/ui/src/screens/Job/JobDetail/JobDetail.js index 89b14cd0d56c..bcc13f0d08ad 100644 --- a/awx/ui/src/screens/Job/JobDetail/JobDetail.js +++ b/awx/ui/src/screens/Job/JobDetail/JobDetail.js @@ -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]} /> + {renderInventoryDetail()} {inventory_source && (