Fixes 4426: Confirm Image builder is using origin
This commit is contained in:
parent
7a18bd0abb
commit
be95cd9dc0
6 changed files with 23 additions and 8 deletions
|
|
@ -24,6 +24,7 @@ import { useDispatch } from 'react-redux';
|
|||
import PackageRecommendationDescription from './components/PackageRecommendationDescription';
|
||||
import { RedHatRepository } from './Packages';
|
||||
|
||||
import { ContentOrigin } from '../../../../constants';
|
||||
import { useListRepositoriesQuery } from '../../../../store/contentSourcesApi';
|
||||
import { useAppSelector } from '../../../../store/hooks';
|
||||
import { useRecommendPackageMutation } from '../../../../store/imageBuilderApi';
|
||||
|
|
@ -54,7 +55,7 @@ const PackageRecommendations = () => {
|
|||
availableForArch: arch,
|
||||
availableForVersion: version,
|
||||
contentType: 'rpm',
|
||||
origin: 'red_hat',
|
||||
origin: ContentOrigin.REDHAT,
|
||||
limit: 100,
|
||||
offset: 0,
|
||||
});
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ import PackageInfoNotAvailablePopover from './components/PackageInfoNotAvailable
|
|||
|
||||
import {
|
||||
CONTENT_URL,
|
||||
ContentOrigin,
|
||||
EPEL_8_REPO_DEFINITION,
|
||||
EPEL_9_REPO_DEFINITION,
|
||||
RH_ICON_SIZE,
|
||||
|
|
@ -135,6 +136,7 @@ const Packages = () => {
|
|||
const { data: epelRepo, isSuccess: isSuccessEpelRepo } =
|
||||
useListRepositoriesQuery({
|
||||
url: epelRepoUrlByDistribution,
|
||||
origin: ContentOrigin.EXTERNAL,
|
||||
});
|
||||
|
||||
const [isRepoModalOpen, setIsRepoModalOpen] = useState(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue