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