mirror of
https://github.com/ansible/awx.git
synced 2026-03-11 06:29:31 -02:30
Add isolated badge to instance groups list
This commit is contained in:
@@ -527,7 +527,7 @@ function getInstanceGroupDetails () {
|
|||||||
|
|
||||||
let isolated = null;
|
let isolated = null;
|
||||||
|
|
||||||
if (instanceGroup.controller_id) {
|
if (instanceGroup.is_isolated) {
|
||||||
isolated = strings.get('details.ISOLATED');
|
isolated = strings.get('details.ISOLATED');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ function InstanceGroupsStrings (BaseString) {
|
|||||||
MANUAL: t.s('MANUAL'),
|
MANUAL: t.s('MANUAL'),
|
||||||
PANEL_TITLE: t.s('INSTANCE GROUPS'),
|
PANEL_TITLE: t.s('INSTANCE GROUPS'),
|
||||||
ROW_ITEM_LABEL_INSTANCES: t.s('Instances'),
|
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_RUNNING_JOBS: t.s('Running Jobs'),
|
||||||
ROW_ITEM_LABEL_TOTAL_JOBS: t.s('Total Jobs'),
|
ROW_ITEM_LABEL_TOTAL_JOBS: t.s('Total Jobs'),
|
||||||
ROW_ITEM_LABEL_USED_CAPACITY: t.s('Used Capacity')
|
ROW_ITEM_LABEL_USED_CAPACITY: t.s('Used Capacity')
|
||||||
@@ -58,7 +59,7 @@ function InstanceGroupsStrings (BaseString) {
|
|||||||
DELETE: t.s('Unable to delete instance group.'),
|
DELETE: t.s('Unable to delete instance group.'),
|
||||||
};
|
};
|
||||||
|
|
||||||
ns.alert = {
|
ns.alert = {
|
||||||
MISSING_PARAMETER: t.s('Instance Group parameter is missing.'),
|
MISSING_PARAMETER: t.s('Instance Group parameter is missing.'),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,7 +45,9 @@
|
|||||||
<div class="at-Row-items">
|
<div class="at-Row-items">
|
||||||
<at-row-item
|
<at-row-item
|
||||||
header-value="{{ instance_group.name }}"
|
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>
|
</at-row-item>
|
||||||
|
|
||||||
<div class="at-Row--inline">
|
<div class="at-Row--inline">
|
||||||
|
|||||||
Reference in New Issue
Block a user