mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
move another graphql query
This commit is contained in:
parent
d0e70f32e5
commit
024090e362
@ -1,5 +1,11 @@
|
||||
#import './fragments.graphql'
|
||||
|
||||
query projectBrandings {
|
||||
projectBrandings {
|
||||
...ProjectBrandingCommonFields
|
||||
}
|
||||
}
|
||||
|
||||
mutation upsertProjectBranding($input: ProjectBrandingInput!) {
|
||||
upsertProjectBranding(input: $input) {
|
||||
...ProjectBrandingCommonFields
|
||||
|
||||
@ -53,30 +53,14 @@ import { computed, watch, ref } from 'vue'
|
||||
import { useQuery } from '@vue/apollo-composable'
|
||||
import { useStore } from 'vuex'
|
||||
import { useAppToast } from '@/composables/useToast'
|
||||
import gql from 'graphql-tag'
|
||||
import { projectBrandings as projectBrandingsQuery } from '@/graphql/projectBranding.graphql'
|
||||
|
||||
const { toastError } = useAppToast()
|
||||
const store = useStore()
|
||||
|
||||
const { result, loading, refetch, error } = useQuery(
|
||||
gql`
|
||||
query {
|
||||
projectBrandings {
|
||||
id
|
||||
name
|
||||
alias
|
||||
description
|
||||
spaceId
|
||||
newUserToSpace
|
||||
logoUrl
|
||||
}
|
||||
}
|
||||
`,
|
||||
null,
|
||||
{
|
||||
fetchPolicy: 'network-only',
|
||||
},
|
||||
)
|
||||
const { result, loading, refetch, error } = useQuery(projectBrandingsQuery, null, {
|
||||
fetchPolicy: 'network-only',
|
||||
})
|
||||
|
||||
const projectBrandings = ref([])
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user