From e23b47b99779677de2a2a9fd96fa8edd95840927 Mon Sep 17 00:00:00 2001 From: nixocio Date: Wed, 18 Nov 2020 12:01:20 -0500 Subject: [PATCH] Add minor update to strings Add minor update to strings. And adjust the usage of `toTitleCase` to dynamic strings. --- .../Dashboard/shared/DashboardTemplateList.jsx | 11 +++++------ .../InstanceGroupList/InstanceGroupList.jsx | 5 ++--- .../InventoryGroupHosts/InventoryGroupHostList.jsx | 5 ++--- .../screens/Inventory/InventoryList/InventoryList.jsx | 5 ++--- .../InventoryRelatedGroupList.jsx | 5 ++--- .../screens/Template/TemplateList/TemplateList.jsx | 11 +++++------ 6 files changed, 18 insertions(+), 24 deletions(-) diff --git a/awx/ui_next/src/screens/Dashboard/shared/DashboardTemplateList.jsx b/awx/ui_next/src/screens/Dashboard/shared/DashboardTemplateList.jsx index c1fa638207..91e9ad5326 100644 --- a/awx/ui_next/src/screens/Dashboard/shared/DashboardTemplateList.jsx +++ b/awx/ui_next/src/screens/Dashboard/shared/DashboardTemplateList.jsx @@ -9,7 +9,6 @@ import { UnifiedJobTemplatesAPI, WorkflowJobTemplatesAPI, } from '../../../api'; -import { toTitleCase } from '../../../util/strings'; import AlertModal from '../../../components/AlertModal'; import DatalistToolbar from '../../../components/DataListToolbar'; import ErrorDetail from '../../../components/ErrorDetail'; @@ -142,19 +141,19 @@ function DashboardTemplateList({ i18n }) { const canAddWFJT = wfjtActions && Object.prototype.hasOwnProperty.call(wfjtActions, 'POST'); - const addTempate = toTitleCase(i18n._(t`Add Job Template`)); - const addWFTemplate = toTitleCase(i18n._(t`Add Workflow Template`)); + const addTemplate = i18n._(t`Add job template`); + const addWFTemplate = i18n._(t`Add workflow template`); const addButton = ( - {addTempate} + {addTemplate} , - {addTempate} + {addTemplate} ); }