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:
@@ -130,7 +130,11 @@ export const UPDATE_MANGA = gql`
|
||||
`;
|
||||
|
||||
export const UPDATE_MANGAS = gql`
|
||||
mutation UPDATE_MANGAS($input: UpdateMangasInput!) {
|
||||
mutation UPDATE_MANGAS(
|
||||
$input: UpdateMangasInput!
|
||||
$updateCategoryInput: UpdateMangasCategoriesInput!
|
||||
$updateCategories: Boolean!
|
||||
) {
|
||||
updateMangas(input: $input) {
|
||||
clientMutationId
|
||||
mangas {
|
||||
@@ -148,6 +152,20 @@ export const UPDATE_MANGAS = gql`
|
||||
}
|
||||
}
|
||||
}
|
||||
updateMangasCategories(input: $updateCategoryInput) @include(if: $updateCategories) {
|
||||
mangas {
|
||||
id
|
||||
categories {
|
||||
nodes {
|
||||
id
|
||||
mangas {
|
||||
totalCount
|
||||
}
|
||||
}
|
||||
totalCount
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user