Add SCM Type detail to job details

This commit is contained in:
Marliana Lara 2022-05-02 16:25:46 -04:00
parent 856a2c1734
commit dd47829bdb
No known key found for this signature in database
GPG Key ID: 38C73B40DFA809EE

View File

@ -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 && (