Cleanup DownloadQueue

This commit is contained in:
schroda
2025-04-25 01:35:07 +02:00
parent 1b7338f5e3
commit 11755299e9
3 changed files with 162 additions and 185 deletions

View File

@@ -15,6 +15,7 @@ import { ChapterIdInfo, Chapters } from '@/modules/chapter/services/Chapters.ts'
import { requestManager } from '@/lib/requests/RequestManager.ts';
import { makeToast } from '@/modules/core/utils/Toast.ts';
import { getErrorMessage } from '@/lib/HelperFunctions.ts';
import { MUIUtil } from '@/lib/mui/MUI.util.ts';
export const ChapterDownloadRetryButton = ({ chapterId }: { chapterId: ChapterIdInfo['id'] }) => {
const { t } = useTranslation();
@@ -35,6 +36,7 @@ export const ChapterDownloadRetryButton = ({ chapterId }: { chapterId: ChapterId
return (
<CustomTooltip title={t('global.button.retry')}>
<IconButton
{...MUIUtil.preventRippleProp()}
onClick={(e) => {
e.preventDefault();
e.stopPropagation();