mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
Add minor update to strings
Add minor update to strings. And adjust the usage of `toTitleCase` to dynamic strings.
This commit is contained in:
parent
1deb4ff5e4
commit
e23b47b997
@ -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 = (
|
||||
<AddDropDownButton
|
||||
key="add"
|
||||
dropdownItems={[
|
||||
<DropdownItem
|
||||
key={addTempate}
|
||||
key={addTemplate}
|
||||
component={Link}
|
||||
to="/templates/job_template/add/"
|
||||
aria-label={addTempate}
|
||||
aria-label={addTemplate}
|
||||
>
|
||||
{addTempate}
|
||||
{addTemplate}
|
||||
</DropdownItem>,
|
||||
<DropdownItem
|
||||
component={Link}
|
||||
|
||||
@ -8,7 +8,6 @@ import { InstanceGroupsAPI } from '../../../api';
|
||||
import { getQSConfig, parseQueryString } from '../../../util/qs';
|
||||
import useRequest, { useDeleteItems } from '../../../util/useRequest';
|
||||
import useSelected from '../../../util/useSelected';
|
||||
import { toTitleCase } from '../../../util/strings';
|
||||
import PaginatedDataList, {
|
||||
ToolbarDeleteButton,
|
||||
} from '../../../components/PaginatedDataList';
|
||||
@ -153,8 +152,8 @@ function InstanceGroupList({ i18n }) {
|
||||
);
|
||||
}
|
||||
|
||||
const addContainerGroup = toTitleCase(i18n._(t`Add Container Group`));
|
||||
const addInstanceGroup = toTitleCase(i18n._(t`Add Instance Group`));
|
||||
const addContainerGroup = i18n._(t`Add container group`);
|
||||
const addInstanceGroup = i18n._(t`Add instance group`);
|
||||
|
||||
const addButton = (
|
||||
<AddDropDownButton
|
||||
|
||||
@ -20,7 +20,6 @@ import DisassociateButton from '../../../components/DisassociateButton';
|
||||
import AdHocCommands from '../../../components/AdHocCommands/AdHocCommands';
|
||||
import InventoryGroupHostListItem from './InventoryGroupHostListItem';
|
||||
import AddDropDownButton from '../../../components/AddDropDownButton';
|
||||
import { toTitleCase } from '../../../util/strings';
|
||||
|
||||
const QS_CONFIG = getQSConfig('host', {
|
||||
page: 1,
|
||||
@ -144,8 +143,8 @@ function InventoryGroupHostList({ i18n }) {
|
||||
const canAdd =
|
||||
actions && Object.prototype.hasOwnProperty.call(actions, 'POST');
|
||||
const addFormUrl = `/inventories/inventory/${inventoryId}/groups/${groupId}/nested_hosts/add`;
|
||||
const addExistingHost = toTitleCase(i18n._(t`Add Existing Host`));
|
||||
const addNewHost = toTitleCase(i18n._(t`Add New Host`));
|
||||
const addExistingHost = i18n._(t`Add existing host`);
|
||||
const addNewHost = i18n._(t`Add new host`);
|
||||
|
||||
const addButton = (
|
||||
<AddDropDownButton
|
||||
|
||||
@ -5,7 +5,6 @@ import { t } from '@lingui/macro';
|
||||
import { Card, PageSection, DropdownItem } from '@patternfly/react-core';
|
||||
import { InventoriesAPI } from '../../../api';
|
||||
import useRequest, { useDeleteItems } from '../../../util/useRequest';
|
||||
import { toTitleCase } from '../../../util/strings';
|
||||
import AlertModal from '../../../components/AlertModal';
|
||||
import DatalistToolbar from '../../../components/DataListToolbar';
|
||||
import ErrorDetail from '../../../components/ErrorDetail';
|
||||
@ -125,8 +124,8 @@ function InventoryList({ i18n }) {
|
||||
}
|
||||
}
|
||||
};
|
||||
const addInventory = toTitleCase(i18n._(t`Add Inventory`));
|
||||
const addSmartInventory = toTitleCase(i18n._(t`Add Smart Inventory`));
|
||||
const addInventory = i18n._(t`Add inventory`);
|
||||
const addSmartInventory = i18n._(t`Add smart inventory`);
|
||||
const addButton = (
|
||||
<AddDropDownButton
|
||||
key="add"
|
||||
|
||||
@ -18,7 +18,6 @@ import AlertModal from '../../../components/AlertModal';
|
||||
import ErrorDetail from '../../../components/ErrorDetail';
|
||||
import AssociateModal from '../../../components/AssociateModal';
|
||||
import DisassociateButton from '../../../components/DisassociateButton';
|
||||
import { toTitleCase } from '../../../util/strings';
|
||||
|
||||
const QS_CONFIG = getQSConfig('group', {
|
||||
page: 1,
|
||||
@ -126,8 +125,8 @@ function InventoryRelatedGroupList({ i18n }) {
|
||||
|
||||
const addFormUrl = `/inventories/inventory/${inventoryId}/groups/${groupId}/nested_groups/add`;
|
||||
|
||||
const addExistingGroup = toTitleCase(i18n._(t`Add Existing Group`));
|
||||
const addNewGroup = toTitleCase(i18n._(t`Add New Group`));
|
||||
const addExistingGroup = i18n._(t`Add existing group`);
|
||||
const addNewGroup = i18n._(t`Add new group`);
|
||||
const addButton = (
|
||||
<AddDropDownButton
|
||||
key="add"
|
||||
|
||||
@ -16,7 +16,6 @@ import PaginatedDataList, {
|
||||
} from '../../../components/PaginatedDataList';
|
||||
import useRequest, { useDeleteItems } from '../../../util/useRequest';
|
||||
import { getQSConfig, parseQueryString } from '../../../util/qs';
|
||||
import { toTitleCase } from '../../../util/strings';
|
||||
import useWsTemplates from '../../../util/useWsTemplates';
|
||||
import AddDropDownButton from '../../../components/AddDropDownButton';
|
||||
import TemplateListItem from './TemplateListItem';
|
||||
@ -134,18 +133,18 @@ function TemplateList({ 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 addDropDownButton = [];
|
||||
if (canAddJT) {
|
||||
addDropDownButton.push(
|
||||
<DropdownItem
|
||||
key={addTempate}
|
||||
key={addTemplate}
|
||||
component={Link}
|
||||
to="/templates/job_template/add/"
|
||||
aria-label={addTempate}
|
||||
aria-label={addTemplate}
|
||||
>
|
||||
{addTempate}
|
||||
{addTemplate}
|
||||
</DropdownItem>
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user