mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 18:40:01 -03:30
Merge pull request #12134 from ansible/add-deleted-inventory-locator-for-JT-detail
add new locator for deleted inventory in JT detail screen
This commit is contained in:
commit
b6362a63cc
@ -11,8 +11,8 @@ const Detail = styled(_Detail)`
|
||||
}
|
||||
`;
|
||||
|
||||
function DeletedDetail({ label }) {
|
||||
return <Detail label={label} value={t`Deleted`} />;
|
||||
function DeletedDetail({ label, dataCy }) {
|
||||
return <Detail label={label} dataCy={dataCy} value={t`Deleted`} />;
|
||||
}
|
||||
|
||||
DeletedDetail.propTypes = {
|
||||
|
||||
@ -218,7 +218,9 @@ function JobTemplateDetail({ template }) {
|
||||
)}
|
||||
/>
|
||||
) : (
|
||||
!ask_inventory_on_launch && <DeletedDetail label={t`Inventory`} />
|
||||
!ask_inventory_on_launch && (
|
||||
<DeletedDetail label={t`Inventory`} dataCy="jt-detail-inventory" />
|
||||
)
|
||||
)}
|
||||
{summary_fields.project ? (
|
||||
<Detail
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user