mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Scene Marker grid view (#5443)
* add bulk delete mutation --------- Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
@@ -1499,6 +1499,24 @@ export const useSceneMarkerDestroy = () =>
|
||||
},
|
||||
});
|
||||
|
||||
export const useSceneMarkersDestroy = (
|
||||
input: GQL.SceneMarkersDestroyMutationVariables
|
||||
) =>
|
||||
GQL.useSceneMarkersDestroyMutation({
|
||||
variables: input,
|
||||
update(cache, result) {
|
||||
if (!result.data?.sceneMarkersDestroy) return;
|
||||
|
||||
for (const id of input.ids) {
|
||||
const obj = { __typename: "SceneMarker", id };
|
||||
cache.evict({ id: cache.identify(obj) });
|
||||
}
|
||||
|
||||
evictTypeFields(cache, sceneMarkerMutationImpactedTypeFields);
|
||||
evictQueries(cache, sceneMarkerMutationImpactedQueries);
|
||||
},
|
||||
});
|
||||
|
||||
const galleryMutationImpactedTypeFields = {
|
||||
Scene: ["galleries"],
|
||||
Performer: ["gallery_count", "performer_count"],
|
||||
|
||||
Reference in New Issue
Block a user