From 540f4fa956cd5bcbddb69035a19c4de7ed4968ca Mon Sep 17 00:00:00 2001 From: Marliana Lara Date: Tue, 19 Jun 2018 15:07:37 -0400 Subject: [PATCH] Update instance group breadcrumb strings --- .../src/instance-groups/instance-groups.strings.js | 2 ++ awx/ui/client/src/instance-groups/main.js | 9 ++++----- 2 files changed, 6 insertions(+), 5 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 aff0edfd95..b082a93cc8 100644 --- a/awx/ui/client/src/instance-groups/instance-groups.strings.js +++ b/awx/ui/client/src/instance-groups/instance-groups.strings.js @@ -5,6 +5,8 @@ function InstanceGroupsStrings (BaseString) { const ns = this.instanceGroups; ns.state = { + INSTANCE_GROUPS_BREADCRUMB_LABEL: t.s('INSTANCE GROUPS'), + INSTANCES_BREADCRUMB_LABEL: t.s('INSTANCES'), ADD_BREADCRUMB_LABEL: t.s('CREATE INSTANCE GROUP'), EDIT_BREADCRUMB_LABEL: t.s('EDIT INSTANCE GROUP') }; diff --git a/awx/ui/client/src/instance-groups/main.js b/awx/ui/client/src/instance-groups/main.js index 78b238fefa..d7776202d2 100644 --- a/awx/ui/client/src/instance-groups/main.js +++ b/awx/ui/client/src/instance-groups/main.js @@ -61,13 +61,13 @@ InstanceGroupsResolve.$inject = [ 'InstanceModel' ]; -function InstanceGroupsRun ($stateExtender, strings, ComponentsStrings) { +function InstanceGroupsRun ($stateExtender, strings) { $stateExtender.addState({ name: 'instanceGroups', url: '/instance_groups', searchPrefix: 'instance_group', ncyBreadcrumb: { - label: ComponentsStrings.get('layout.INSTANCE_GROUPS') + label: strings.get('state.INSTANCE_GROUPS_BREADCRUMB_LABEL') }, params: { instance_group_search: { @@ -232,7 +232,7 @@ function InstanceGroupsRun ($stateExtender, strings, ComponentsStrings) { url: '/:instance_group_id/instances', ncyBreadcrumb: { parent: 'instanceGroups.edit', - label: ComponentsStrings.get('layout.INSTANCES') + label: strings.get('state.INSTANCES_BREADCRUMB_LABEL') }, params: { instance_search: { @@ -296,8 +296,7 @@ function InstanceGroupsRun ($stateExtender, strings, ComponentsStrings) { InstanceGroupsRun.$inject = [ '$stateExtender', - 'InstanceGroupsStrings', - 'ComponentsStrings' + 'InstanceGroupsStrings' ]; angular.module(MODULE_NAME, [])