V2Wizard: Update wording on "Custom repo" modal

This updates the wording on "Custom repositories will be added to your image" modal, informing the user, that the repository will get enabled in Content as well, if it wasn't enabled before.
This commit is contained in:
regexowl 2024-04-12 10:13:52 +02:00 committed by Lucas Garfield
parent 16ab5b37c5
commit 70b7ab7e29

View file

@ -24,7 +24,12 @@ import {
ToolbarItem,
} from '@patternfly/react-core';
import { Modal } from '@patternfly/react-core';
import { HelpIcon, OptimizeIcon, SearchIcon } from '@patternfly/react-icons';
import {
ExternalLinkAltIcon,
HelpIcon,
OptimizeIcon,
SearchIcon,
} from '@patternfly/react-icons';
import { Table, Tbody, Td, Th, Thead, Tr } from '@patternfly/react-table';
import { useDispatch } from 'react-redux';
@ -308,6 +313,7 @@ const Packages = () => {
};
const RepositoryModal = () => {
const { isBeta } = useGetEnvironment();
return (
<Modal
titleIconVariant="warning"
@ -331,7 +337,22 @@ const Packages = () => {
>
You have selected packages that belong to custom repositories. By
continuing, you are acknowledging and consenting to adding the following
custom repositories to your image:
custom repositories to your image.
<br />
<br />
The repositories will also get enabled in{' '}
<Button
component="a"
target="_blank"
variant="link"
iconPosition="right"
isInline
icon={<ExternalLinkAltIcon />}
href={isBeta() ? '/preview/settings/content' : '/settings/content'}
>
content services
</Button>{' '}
if they were not enabled yet:
<br />
<Table variant="compact">
<Thead>