mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Create a section in the history panel to reset scene activity (#5168)
Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
@@ -786,6 +786,21 @@ export const useSceneResetO = (id: string) =>
|
||||
},
|
||||
});
|
||||
|
||||
export const useSceneResetActivity = (
|
||||
id: string,
|
||||
reset_resume: boolean,
|
||||
reset_duration: boolean
|
||||
) =>
|
||||
GQL.useSceneResetActivityMutation({
|
||||
variables: { id, reset_resume, reset_duration },
|
||||
update(cache, result) {
|
||||
if (!result.data?.sceneResetActivity) return;
|
||||
|
||||
evictTypeFields(cache, sceneMutationImpactedTypeFields);
|
||||
evictQueries(cache, sceneMutationImpactedQueries);
|
||||
},
|
||||
});
|
||||
|
||||
export const useSceneGenerateScreenshot = () =>
|
||||
GQL.useSceneGenerateScreenshotMutation();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user