Audit string translations in instance groups templates

This commit is contained in:
Marliana Lara
2018-06-06 14:46:43 -04:00
parent decfc8fa8c
commit 31da1e6ef7
2 changed files with 15 additions and 5 deletions

View File

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

View File

@@ -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')
}; };