Add scenes tab to performer page (#280)

This commit is contained in:
Infinite
2020-01-23 14:12:03 +01:00
parent dcfd445040
commit 63cc97d199
9 changed files with 720 additions and 368 deletions

View File

@@ -290,27 +290,24 @@ export class StashService {
"allPerformers"
];
public static usePerformerCreate(input: GQL.PerformerCreateInput) {
public static usePerformerCreate() {
return GQL.usePerformerCreateMutation({
variables: input,
update: () =>
StashService.invalidateQueries(
StashService.performerMutationImpactedQueries
)
});
}
public static usePerformerUpdate(input: GQL.PerformerUpdateInput) {
public static usePerformerUpdate() {
return GQL.usePerformerUpdateMutation({
variables: input,
update: () =>
StashService.invalidateQueries(
StashService.performerMutationImpactedQueries
)
});
}
public static usePerformerDestroy(input: GQL.PerformerDestroyInput) {
public static usePerformerDestroy() {
return GQL.usePerformerDestroyMutation({
variables: input,
update: () =>
StashService.invalidateQueries(
StashService.performerMutationImpactedQueries