Filter content-sources repos by origin and content_type
This commit is contained in:
parent
99ae627007
commit
5d6b6dfbfe
7 changed files with 142 additions and 3 deletions
|
|
@ -49,6 +49,8 @@ const CustomButtons = ({
|
|||
prefetchRepositories({
|
||||
availableForArch: 'x86_64',
|
||||
availableForVersion: version,
|
||||
contentType: 'rpm',
|
||||
origin: 'external',
|
||||
});
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -212,6 +212,8 @@ const Repositories = (props) => {
|
|||
{
|
||||
availableForArch: 'x86_64',
|
||||
availableForVersion: version,
|
||||
contentType: 'rpm',
|
||||
origin: 'external',
|
||||
limit: 100,
|
||||
offset: 0,
|
||||
},
|
||||
|
|
@ -230,6 +232,8 @@ const Repositories = (props) => {
|
|||
{
|
||||
availableForArch: 'x86_64',
|
||||
availableForVersion: version,
|
||||
contentType: 'rpm',
|
||||
origin: 'external',
|
||||
limit: firstRequest?.data?.meta?.count,
|
||||
offset: 0,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -18,6 +18,8 @@ import { useListRepositoriesQuery } from '../../../store/contentSourcesApi';
|
|||
const RepoName = ({ repoUrl }) => {
|
||||
const { data, isSuccess, isFetching, isError } = useListRepositoriesQuery({
|
||||
url: repoUrl,
|
||||
contentType: 'rpm',
|
||||
origin: 'external',
|
||||
});
|
||||
|
||||
const errorLoading = () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue