mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-04 23:49:38 +00:00
pass showIgnored filter state to channel dl aggs
This commit is contained in:
@@ -14,8 +14,12 @@ export type DownloadAggsType = {
|
||||
};
|
||||
};
|
||||
|
||||
const loadDownloadAggs = async (): Promise<DownloadAggsType> => {
|
||||
return APIClient('/api/download/aggs/');
|
||||
const loadDownloadAggs = async (showIgnored: boolean): Promise<DownloadAggsType> => {
|
||||
const searchParams = new URLSearchParams();
|
||||
searchParams.append('filter', showIgnored ? 'ignore' : 'pending');
|
||||
return APIClient(
|
||||
`/api/download/aggs/${searchParams.toString() ? `?${searchParams.toString()}` : ''}`,
|
||||
);
|
||||
};
|
||||
|
||||
export default loadDownloadAggs;
|
||||
|
||||
Reference in New Issue
Block a user