mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Add Chapters for Galleries (#3289)
Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
@@ -752,6 +752,27 @@ export const mutateGallerySetPrimaryFile = (id: string, fileID: string) =>
|
||||
update: deleteCache(galleryMutationImpactedQueries),
|
||||
});
|
||||
|
||||
const galleryChapterMutationImpactedQueries = [
|
||||
GQL.FindGalleryDocument,
|
||||
GQL.FindGalleriesDocument,
|
||||
];
|
||||
|
||||
export const useGalleryChapterCreate = () =>
|
||||
GQL.useGalleryChapterCreateMutation({
|
||||
refetchQueries: getQueryNames([GQL.FindGalleryDocument]),
|
||||
update: deleteCache(galleryChapterMutationImpactedQueries),
|
||||
});
|
||||
export const useGalleryChapterUpdate = () =>
|
||||
GQL.useGalleryChapterUpdateMutation({
|
||||
refetchQueries: getQueryNames([GQL.FindGalleryDocument]),
|
||||
update: deleteCache(galleryChapterMutationImpactedQueries),
|
||||
});
|
||||
export const useGalleryChapterDestroy = () =>
|
||||
GQL.useGalleryChapterDestroyMutation({
|
||||
refetchQueries: getQueryNames([GQL.FindGalleryDocument]),
|
||||
update: deleteCache(galleryChapterMutationImpactedQueries),
|
||||
});
|
||||
|
||||
export const studioMutationImpactedQueries = [
|
||||
GQL.FindStudiosDocument,
|
||||
GQL.FindSceneDocument,
|
||||
|
||||
Reference in New Issue
Block a user