mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 15:36:04 -03:30
Audit string translations in instance groups templates
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
function CapacityAdjuster (templateUrl, ProcessErrors, Wait) {
|
function CapacityAdjuster (templateUrl, ProcessErrors, Wait, strings) {
|
||||||
return {
|
return {
|
||||||
scope: {
|
scope: {
|
||||||
state: '=',
|
state: '=',
|
||||||
@@ -9,10 +9,10 @@ function CapacityAdjuster (templateUrl, ProcessErrors, Wait) {
|
|||||||
replace: true,
|
replace: true,
|
||||||
link: function(scope) {
|
link: function(scope) {
|
||||||
const adjustment_values = [{
|
const adjustment_values = [{
|
||||||
label: 'CPU',
|
label: strings.get('capacityAdjuster.CPU'),
|
||||||
value: scope.state.cpu_capacity,
|
value: scope.state.cpu_capacity,
|
||||||
},{
|
},{
|
||||||
label: 'RAM',
|
label: strings.get('capacityAdjuster.RAM'),
|
||||||
value: scope.state.mem_capacity
|
value: scope.state.mem_capacity
|
||||||
}];
|
}];
|
||||||
|
|
||||||
@@ -51,7 +51,8 @@ function CapacityAdjuster (templateUrl, ProcessErrors, Wait) {
|
|||||||
CapacityAdjuster.$inject = [
|
CapacityAdjuster.$inject = [
|
||||||
'templateUrl',
|
'templateUrl',
|
||||||
'ProcessErrors',
|
'ProcessErrors',
|
||||||
'Wait'
|
'Wait',
|
||||||
|
'InstanceGroupsStrings'
|
||||||
];
|
];
|
||||||
|
|
||||||
export default CapacityAdjuster;
|
export default CapacityAdjuster;
|
||||||
@@ -10,7 +10,11 @@ function InstanceGroupsStrings (BaseString) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
ns.list = {
|
ns.list = {
|
||||||
PANEL_TITLE: t.s('INSTANCE GROUPS')
|
PANEL_TITLE: t.s('INSTANCE GROUPS'),
|
||||||
|
ROW_ITEM_LABEL_INSTANCES: t.s('Instances'),
|
||||||
|
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')
|
||||||
};
|
};
|
||||||
|
|
||||||
ns.tab = {
|
ns.tab = {
|
||||||
@@ -33,6 +37,11 @@ function InstanceGroupsStrings (BaseString) {
|
|||||||
IS_OFFLINE_LABEL: t.s('Unavailable')
|
IS_OFFLINE_LABEL: t.s('Unavailable')
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ns.capacityAdjuster = {
|
||||||
|
CPU: t.s('CPU'),
|
||||||
|
RAM: t.s('RAM')
|
||||||
|
};
|
||||||
|
|
||||||
ns.jobs = {
|
ns.jobs = {
|
||||||
PANEL_TITLE: t.s('Jobs')
|
PANEL_TITLE: t.s('Jobs')
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user