removed frontend community mixin & community query

This commit is contained in:
Ulf Gebhardt 2022-04-07 12:55:32 +02:00
parent eaa8858bd3
commit 751387ee3d
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9
2 changed files with 0 additions and 35 deletions

View File

@ -99,17 +99,6 @@ export const listGDTEntriesQuery = gql`
}
`
export const communityInfo = gql`
query {
getCommunityInfo {
name
description
registerUrl
url
}
}
`
export const communities = gql`
query {
communities {

View File

@ -1,24 +0,0 @@
import { communityInfo } from '../graphql/queries'
export const getCommunityInfoMixin = {
methods: {
getCommunityInfo() {
if (this.$store.state.community.name === '') {
this.$apollo
.query({
query: communityInfo,
})
.then((result) => {
this.$store.commit('community', result.data.getCommunityInfo)
return result.data.getCommunityInfo
})
.catch((error) => {
this.toastError(error.message)
})
}
},
},
created() {
this.getCommunityInfo()
},
}