Feature/add option to remove manga from categories when removing from library (#633)

* Optionally remove manga categories when removing them from library

* Use "Mangas::removeFromLibrary"

* Handle uncatched promises
This commit is contained in:
schroda
2024-03-02 15:28:58 +01:00
committed by GitHub
parent c5a5c4b8af
commit 8bdf035ca7
12 changed files with 65 additions and 13 deletions

View File

@@ -97,6 +97,19 @@ export function LibrarySettings() {
onChange={(e) => setSettingValue('showAddToLibraryCategorySelectDialog', e.target.checked)}
/>
</ListItem>
<ListItem>
<ListItemText
primary={t('library.settings.general.remove_from_library.remove_from_categories.label.title')}
secondary={t(
'library.settings.general.remove_from_library.remove_from_categories.label.description',
)}
/>
<Switch
edge="end"
checked={settings.removeMangaFromCategories}
onChange={(e) => setSettingValue('removeMangaFromCategories', e.target.checked)}
/>
</ListItem>
</List>
<GlobalUpdateSettings />
<List