mirror of
https://github.com/ansible/awx.git
synced 2026-03-07 19:51:08 -03:30
Merge pull request #11885 from marshmalien/11729-job-details-deleted-text
Add deleted details to job detail view
This commit is contained in:
@@ -9,6 +9,7 @@ import styled from 'styled-components';
|
|||||||
import { useConfig } from 'contexts/Config';
|
import { useConfig } from 'contexts/Config';
|
||||||
import AlertModal from 'components/AlertModal';
|
import AlertModal from 'components/AlertModal';
|
||||||
import {
|
import {
|
||||||
|
DeletedDetail,
|
||||||
DetailList,
|
DetailList,
|
||||||
Detail,
|
Detail,
|
||||||
UserDateDetail,
|
UserDateDetail,
|
||||||
@@ -158,7 +159,7 @@ function JobDetail({ job, inventorySourceLabels }) {
|
|||||||
value={jobTypes[job.type]}
|
value={jobTypes[job.type]}
|
||||||
/>
|
/>
|
||||||
<LaunchedByDetail dataCy="job-launched-by" job={job} />
|
<LaunchedByDetail dataCy="job-launched-by" job={job} />
|
||||||
{inventory && (
|
{inventory ? (
|
||||||
<Detail
|
<Detail
|
||||||
dataCy="job-inventory"
|
dataCy="job-inventory"
|
||||||
label={t`Inventory`}
|
label={t`Inventory`}
|
||||||
@@ -174,6 +175,8 @@ function JobDetail({ job, inventorySourceLabels }) {
|
|||||||
</Link>
|
</Link>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
) : (
|
||||||
|
<DeletedDetail label={t`Inventory`} />
|
||||||
)}
|
)}
|
||||||
{inventory_source && (
|
{inventory_source && (
|
||||||
<>
|
<>
|
||||||
@@ -215,7 +218,7 @@ function JobDetail({ job, inventorySourceLabels }) {
|
|||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{project && (
|
{project ? (
|
||||||
<>
|
<>
|
||||||
<Detail
|
<Detail
|
||||||
dataCy="job-project"
|
dataCy="job-project"
|
||||||
@@ -236,6 +239,8 @@ function JobDetail({ job, inventorySourceLabels }) {
|
|||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
|
) : (
|
||||||
|
<DeletedDetail label={t`Project`} />
|
||||||
)}
|
)}
|
||||||
{scmBranch && (
|
{scmBranch && (
|
||||||
<Detail
|
<Detail
|
||||||
|
|||||||
Reference in New Issue
Block a user