Wizard: Change '3rd party repositories' to 'Custom repositories'
All instances of '3rd party repositories' (and its variations) have been changed to 'Custom repositories'. This is in better agreement with the content sources app on consoledot, which generally is called either 'Custom Repositories' or 'Repositories'. Additionally, it is possible to add and manage Red Hat repositories via content sources, which makes '3rd party' confusing.
This commit is contained in:
parent
eb2f5be66d
commit
280c11c824
7 changed files with 29 additions and 35 deletions
|
|
@ -61,7 +61,7 @@ export const ContentSourcesPackages = () => {
|
|||
const { getState } = useFormApi();
|
||||
|
||||
const getAllPackages = async (packagesSearchName) => {
|
||||
const repos = getState()?.values?.['third-party-repositories'];
|
||||
const repos = getState()?.values?.['custom-repositories'];
|
||||
const repoUrls = repos?.map((repo) => repo.baseurl);
|
||||
return await api.getPackagesContentSources(repoUrls, packagesSearchName);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -166,10 +166,8 @@ const Repositories = (props) => {
|
|||
const [perPage, setPerPage] = useState(10);
|
||||
const [page, setPage] = useState(1);
|
||||
const [selected, setSelected] = useState(
|
||||
getState()?.values?.['third-party-repositories']
|
||||
? getState().values['third-party-repositories'].map(
|
||||
(repo) => repo.baseurl
|
||||
)
|
||||
getState()?.values?.['custom-repositories']
|
||||
? getState().values['custom-repositories'].map((repo) => repo.baseurl)
|
||||
: []
|
||||
);
|
||||
|
||||
|
|
@ -264,12 +262,12 @@ const Repositories = (props) => {
|
|||
<EmptyState variant={EmptyStateVariant.large} data-testid="empty-state">
|
||||
<EmptyStateIcon icon={RepositoryIcon} />
|
||||
<Title headingLevel="h4" size="lg">
|
||||
No Third Party Repositories
|
||||
No Custom Repositories
|
||||
</Title>
|
||||
<EmptyStateBody>
|
||||
Third party repositories managed via the Red Hat Insights
|
||||
Repositories app will be available here to select and use to search
|
||||
for additional packages.
|
||||
Custom repositories managed via the Red Hat Insights Repositories
|
||||
app will be available here to select and use to search for
|
||||
additional packages.
|
||||
</EmptyStateBody>
|
||||
<Button
|
||||
variant="primary"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue