mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 20:00:43 -03:30
make Instance Group in job details a link
This commit is contained in:
parent
2be8e8d55a
commit
38526b831b
@ -445,6 +445,7 @@ function getInstanceGroupDetails () {
|
||||
|
||||
const label = strings.get('labels.INSTANCE_GROUP');
|
||||
const value = $filter('sanitize')(instanceGroup.name);
|
||||
const link = `/#/instance_groups/${instanceGroup.id}`;
|
||||
|
||||
let isolated = null;
|
||||
|
||||
@ -452,7 +453,7 @@ function getInstanceGroupDetails () {
|
||||
isolated = strings.get('details.ISOLATED');
|
||||
}
|
||||
|
||||
return { label, value, isolated };
|
||||
return { label, value, isolated, link };
|
||||
}
|
||||
|
||||
function getJobTagDetails () {
|
||||
|
||||
@ -278,7 +278,9 @@
|
||||
<div class="JobResults-resultRow" ng-if="vm.instanceGroup">
|
||||
<label class="JobResults-resultRowLabel">{{ vm.instanceGroup.label }}</label>
|
||||
<div class="JobResults-resultRowText JobResults-resultRowText--instanceGroup">
|
||||
{{ vm.instanceGroup.value }}
|
||||
<a href="{{ vm.instanceGroup.link }}">
|
||||
{{ vm.instanceGroup.value }}
|
||||
</a>
|
||||
<span class="JobResults-isolatedBadge" ng-if="vm.instanceGroup.isolated">
|
||||
{{ vm.instanceGroup.isolated }}
|
||||
</span>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user