Feature/library manga actions (#506)
* Extend "IMangaGridProps" from "DefaultGridProps"
* Move library manga filtering into hook
* Add logic to select mangas
* Add manga actions
* Remove cache only policy for category mangas
Unclear why this was added
* Prevent SelectionFAB from being hidden by the mobile footer
On e.g. the library page, the footer is visible and thus, the fab was not completely visible
* Update categories of manga only after clicking "OK"
Previously, selecting a category resulted in an immediate mutation.
To be able to reuse the "CategorySelect" component to change the categories of multiple mangas at once, this behaviour is not suited.
* Add action to change categories of multiple mangas
* Cancel selection mode after removal from library
The mangas would still be selected and other action could get performed. However, this should only be possible for mangas that are in the library
* Remove unintentionally added console log
Accidentally added with 980da657d9
This commit is contained in:
@@ -446,6 +446,34 @@
|
||||
"title": "Library"
|
||||
},
|
||||
"manga": {
|
||||
"action": {
|
||||
"library": {
|
||||
"remove": {
|
||||
"button": {
|
||||
"selected": "Remove selected from the library"
|
||||
},
|
||||
"label": {
|
||||
"action": "Remove from the library",
|
||||
"error_one": "Could not remove manga from the library",
|
||||
"error_other": "Could not remove manga from the library",
|
||||
"success_one": "Removed manga from the library",
|
||||
"success_other": "Removed {{count}} manga from the library"
|
||||
}
|
||||
}
|
||||
},
|
||||
"category": {
|
||||
"button": {
|
||||
"selected": "Change categories of selected"
|
||||
},
|
||||
"label": {
|
||||
"action": "Change categories",
|
||||
"error_one": "Could not change the categories of the manga",
|
||||
"error_other": "Could not change the categories of the manga",
|
||||
"success_one": "Changed categories of manga",
|
||||
"success_other": "Changed categories of {{count}} manga"
|
||||
}
|
||||
}
|
||||
},
|
||||
"button": {
|
||||
"add_to_library": "Add To Library",
|
||||
"in_library": "In Library"
|
||||
@@ -464,7 +492,9 @@
|
||||
"reload_from_source": "Reload data from source",
|
||||
"status": "Status"
|
||||
},
|
||||
"title": "Manga"
|
||||
"title": "Manga",
|
||||
"title_one": "Manga",
|
||||
"title_other": "Manga"
|
||||
},
|
||||
"reader": {
|
||||
"button": {
|
||||
|
||||
Reference in New Issue
Block a user