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