mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 15:36:04 -03:30
Merge pull request #6155 from jakemcdermott/job-inventory-links
Fix job->inventory links Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
@@ -164,7 +164,15 @@ function JobDetail({ job, i18n }) {
|
||||
<Detail
|
||||
label={i18n._(t`Inventory`)}
|
||||
value={
|
||||
<Link to={`/inventory/${inventory.id}`}>{inventory.name}</Link>
|
||||
<Link
|
||||
to={
|
||||
inventory.kind === 'smart'
|
||||
? `/inventories/smart_inventory/${inventory.id}`
|
||||
: `/inventories/inventory/${inventory.id}`
|
||||
}
|
||||
>
|
||||
{inventory.name}
|
||||
</Link>
|
||||
}
|
||||
/>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user