mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Bulk edit tags (#4925)
* Refactor tag relationships and add bulk edit * Add bulk edit tags dialog
This commit is contained in:
@@ -1873,6 +1873,17 @@ export const useTagUpdate = () =>
|
||||
},
|
||||
});
|
||||
|
||||
export const useBulkTagUpdate = (input: GQL.BulkTagUpdateInput) =>
|
||||
GQL.useBulkTagUpdateMutation({
|
||||
variables: { input },
|
||||
update(cache, result) {
|
||||
if (!result.data?.bulkTagUpdate) return;
|
||||
|
||||
evictTypeFields(cache, tagMutationImpactedTypeFields);
|
||||
evictQueries(cache, tagMutationImpactedQueries);
|
||||
},
|
||||
});
|
||||
|
||||
export const useTagDestroy = (input: GQL.TagDestroyInput) =>
|
||||
GQL.useTagDestroyMutation({
|
||||
variables: input,
|
||||
|
||||
Reference in New Issue
Block a user