webpack/scenes/ContentViews/Details/Repositories/ContentViewRepositories.js in katello-4.10.0 vs webpack/scenes/ContentViews/Details/Repositories/ContentViewRepositories.js in katello-4.11.0.rc1

- old
+ new

@@ -37,10 +37,11 @@ Tbody, Tr, Th, Td, } from '@patternfly/react-table'; +import { useSelectionSet } from 'foremanReact/components/PF4/TableIndexPage/Table/TableHooks'; import { useKatelloDocUrl } from '../../../../utils/useKatelloDocUrl'; import AddedStatusLabel from '../../../../components/AddedStatusLabel'; import SelectableDropdown from '../../../../components/SelectableDropdown'; import TableWrapper from '../../../../components/Table/TableWrapper'; import { @@ -62,11 +63,10 @@ selectRepoTypesStatus, } from '../ContentViewDetailSelectors'; import ContentCounts from './ContentCounts'; import LastSync from './LastSync'; import RepoIcon from './RepoIcon'; -import { useSelectionSet } from '../../../../components/Table/TableHooks'; const allRepositories = 'All repositories'; // Add any exceptions to the display names here // [API_value]: displayed_value @@ -225,18 +225,18 @@ setStatusSelected(ALL_STATUSES); }; const rowDropdownItems = ({ id }) => [ { - title: 'Add', + title: __('Add'), ouiaId: `add-repository-${id}`, isDisabled: importOnly || generatedContentView || repositoryIds.includes(id), onClick: () => { onAdd(id); }, }, { - title: 'Remove', + title: __('Remove'), ouiaId: `remove-repository-${id}`, isDisabled: importOnly || generatedContentView || !repositoryIds.includes(id), onClick: () => { onRemove(id); },