make Instance Group in job details a link

This commit is contained in:
Haokun-Chen 2018-06-19 13:38:38 -04:00
parent 2be8e8d55a
commit 38526b831b
No known key found for this signature in database
GPG Key ID: B2AA94BEF6591515
2 changed files with 5 additions and 2 deletions

View File

@ -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 () {

View File

@ -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>