Add "started" library filter

This commit is contained in:
schroda
2024-12-27 03:32:30 +01:00
parent 7c0ce65683
commit 6c175d0b7f
7 changed files with 19 additions and 1 deletions

View File

@@ -88,6 +88,11 @@ export const LibraryOptionsPanel = ({
checked={categoryLibraryOptions.hasUnreadChapters}
onChange={(c) => updateCategoryLibraryOptions('hasUnreadChapters', c)}
/>
<ThreeStateCheckboxInput
label={t('global.filter.label.started')}
checked={categoryLibraryOptions.hasReadChapters}
onChange={(c) => updateCategoryLibraryOptions('hasReadChapters', c)}
/>
<ThreeStateCheckboxInput
label={t('global.filter.label.downloaded')}
checked={categoryLibraryOptions.hasDownloadedChapters}

View File

@@ -26,6 +26,7 @@ export const LibraryToolbarMenu = ({
const active =
options.hasDownloadedChapters != null ||
options.hasUnreadChapters != null ||
options.hasReadChapters != null ||
options.hasBookmarkedChapters != null ||
options.hasDuplicateChapters != null ||
Object.values(options.hasStatus).some((hasStatus) => hasStatus != null) ||