Fix chapters download "all" option
This commit is contained in:
@@ -18,7 +18,7 @@ const DownloadRange = {
|
|||||||
NEXT_5: 5,
|
NEXT_5: 5,
|
||||||
NEXT_10: 10,
|
NEXT_10: 10,
|
||||||
NEXT_25: 25,
|
NEXT_25: 25,
|
||||||
UNREAD: undefined,
|
ALL: undefined,
|
||||||
};
|
};
|
||||||
|
|
||||||
export const ChaptersDownloadActionMenuItems = ({
|
export const ChaptersDownloadActionMenuItems = ({
|
||||||
@@ -60,11 +60,11 @@ export const ChaptersDownloadActionMenuItems = ({
|
|||||||
<MenuItem onClick={() => handleSelect(downloadAheadLimit, undefined, true)}>
|
<MenuItem onClick={() => handleSelect(downloadAheadLimit, undefined, true)}>
|
||||||
{t('chapter.action.download.add.label.ahead', { count: downloadAheadLimit })}
|
{t('chapter.action.download.add.label.ahead', { count: downloadAheadLimit })}
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
<MenuItem onClick={() => handleSelect(DownloadRange.UNREAD)}>
|
<MenuItem onClick={() => handleSelect(DownloadRange.ALL, true)}>
|
||||||
{t('chapter.action.download.add.label.unread')}
|
{t('chapter.action.download.add.label.unread')}
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
<MenuItem onClick={() => handleSelect(downloadAheadLimit)}>
|
<MenuItem onClick={() => handleSelect(DownloadRange.ALL, false)}>
|
||||||
{t('chapter.action.download.add.label.all', { onlyUnread: false })}
|
{t('chapter.action.download.add.label.all')}
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user