From 46f6c675661d0c77e186fd88d4784dae50578e71 Mon Sep 17 00:00:00 2001 From: Marliana Lara Date: Tue, 10 Apr 2018 15:06:14 -0400 Subject: [PATCH] Add updates to instance groups strings file --- .../instance-groups/instance-groups.strings.js | 15 +++++++++++++++ .../list/instance-groups-list.controller.js | 2 +- .../list/instance-groups-list.partial.html | 2 +- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/awx/ui/client/src/instance-groups/instance-groups.strings.js b/awx/ui/client/src/instance-groups/instance-groups.strings.js index 5ec8f411e6..ee4c992b75 100644 --- a/awx/ui/client/src/instance-groups/instance-groups.strings.js +++ b/awx/ui/client/src/instance-groups/instance-groups.strings.js @@ -9,6 +9,10 @@ function InstanceGroupsStrings (BaseString) { EDIT_BREADCRUMB_LABEL: t.s('EDIT INSTANCE GROUP') }; + ns.list = { + PANEL_TITLE: t.s('INSTANCE GROUPS') + }; + ns.tab = { DETAILS: t.s('DETAILS'), INSTANCES: t.s('INSTANCES'), @@ -27,6 +31,17 @@ function InstanceGroupsStrings (BaseString) { ns.jobs = { PANEL_TITLE: t.s('Jobs') }; + + ns.error = { + HEADER: this.error.HEADER, + CALL: this.error.CALL, + DELETE: t.s('Unable to delete instance group.'), + }; + + ns.alert = { + MISSING_PARAMETER: t.s('Instance Group parameter is missing.'), + }; + } InstanceGroupsStrings.$inject = ['BaseStringService']; diff --git a/awx/ui/client/src/instance-groups/list/instance-groups-list.controller.js b/awx/ui/client/src/instance-groups/list/instance-groups-list.controller.js index 3a48660c62..97990c8679 100644 --- a/awx/ui/client/src/instance-groups/list/instance-groups-list.controller.js +++ b/awx/ui/client/src/instance-groups/list/instance-groups-list.controller.js @@ -1,4 +1,4 @@ -export default ['$scope', '$filter', '$state', 'Alert', 'resolvedModels', 'Dataset', 'ComponentsStrings', 'ProcessErrors', 'Prompt', 'Wait', +export default ['$scope', '$filter', '$state', 'Alert', 'resolvedModels', 'Dataset', 'InstanceGroupsStrings','ProcessErrors', 'Prompt', 'Wait', function($scope, $filter, $state, Alert, resolvedModels, Dataset, strings, ProcessErrors, Prompt, Wait) { const vm = this; const { instanceGroup } = resolvedModels; diff --git a/awx/ui/client/src/instance-groups/list/instance-groups-list.partial.html b/awx/ui/client/src/instance-groups/list/instance-groups-list.partial.html index 2600ce4094..3752f9876c 100644 --- a/awx/ui/client/src/instance-groups/list/instance-groups-list.partial.html +++ b/awx/ui/client/src/instance-groups/list/instance-groups-list.partial.html @@ -1,6 +1,6 @@ - {{ vm.strings.get('layout.INSTANCE_GROUPS') }} + {{ vm.strings.get('list.PANEL_TITLE') }} {{ instanceGroupCount }}