move another graphql query

This commit is contained in:
einhornimmond 2025-03-04 13:14:13 +01:00
parent d0e70f32e5
commit 024090e362
2 changed files with 10 additions and 20 deletions

View File

@ -1,5 +1,11 @@
#import './fragments.graphql'
query projectBrandings {
projectBrandings {
...ProjectBrandingCommonFields
}
}
mutation upsertProjectBranding($input: ProjectBrandingInput!) {
upsertProjectBranding(input: $input) {
...ProjectBrandingCommonFields

View File

@ -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([])