1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

Merge pull request #3992 from marshmalien/isolated-badge

Add isolated badge to isolated instance groups

Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
softwarefactory-project-zuul[bot] 2019-06-05 16:58:20 +00:00 committed by GitHub
commit c7f49c1193
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View File

@ -527,7 +527,7 @@ function getInstanceGroupDetails () {
let isolated = null;
if (instanceGroup.controller_id) {
if (instanceGroup.is_isolated) {
isolated = strings.get('details.ISOLATED');
}

View File

@ -14,6 +14,7 @@ function InstanceGroupsStrings (BaseString) {
MANUAL: t.s('MANUAL'),
PANEL_TITLE: t.s('INSTANCE GROUPS'),
ROW_ITEM_LABEL_INSTANCES: t.s('Instances'),
ROW_ITEM_LABEL_ISOLATED: t.s('ISOLATED'),
ROW_ITEM_LABEL_RUNNING_JOBS: t.s('Running Jobs'),
ROW_ITEM_LABEL_TOTAL_JOBS: t.s('Total Jobs'),
ROW_ITEM_LABEL_USED_CAPACITY: t.s('Used Capacity')

View File

@ -45,7 +45,9 @@
<div class="at-Row-items">
<at-row-item
header-value="{{ instance_group.name }}"
header-link="/#/instance_groups/{{ instance_group.id }}">
header-link="/#/instance_groups/{{ instance_group.id }}"
header-tag="{{ instance_group.is_isolated ? vm.strings.get('list.ROW_ITEM_LABEL_ISOLATED') : '' }}"
>
</at-row-item>
<div class="at-Row--inline">