mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Setup improvements (#3504)
* Improve setup redirects * Add network database warning * Add cache directory to setup
This commit is contained in:
@@ -331,14 +331,22 @@ export const mutateSetup = (input: GQL.SetupInput) =>
|
||||
client.mutate<GQL.SetupMutation>({
|
||||
mutation: GQL.SetupDocument,
|
||||
variables: { input },
|
||||
refetchQueries: getQueryNames([GQL.ConfigurationDocument]),
|
||||
update: deleteCache([GQL.ConfigurationDocument]),
|
||||
refetchQueries: getQueryNames([
|
||||
GQL.ConfigurationDocument,
|
||||
GQL.SystemStatusDocument,
|
||||
]),
|
||||
update: deleteCache([GQL.ConfigurationDocument, GQL.SystemStatusDocument]),
|
||||
});
|
||||
|
||||
export const mutateMigrate = (input: GQL.MigrateInput) =>
|
||||
client.mutate<GQL.MigrateMutation>({
|
||||
mutation: GQL.MigrateDocument,
|
||||
variables: { input },
|
||||
refetchQueries: getQueryNames([
|
||||
GQL.ConfigurationDocument,
|
||||
GQL.SystemStatusDocument,
|
||||
]),
|
||||
update: deleteCache([GQL.ConfigurationDocument, GQL.SystemStatusDocument]),
|
||||
});
|
||||
|
||||
export const useDirectory = (path?: string) =>
|
||||
|
||||
Reference in New Issue
Block a user