mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Added mixin to the register community page.
This commit is contained in:
parent
c0fc927c23
commit
cb799ea925
@ -49,32 +49,15 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { communityInfo } from '../../graphql/queries'
|
import { getCommunityInfo } from '../../mixin/getCommunityInfo'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'registerCommunity',
|
name: 'registerCommunity',
|
||||||
data() {
|
data() {
|
||||||
return {}
|
return {}
|
||||||
},
|
},
|
||||||
methods: {
|
mixins: [getCommunityInfo],
|
||||||
async onCreated() {
|
methods: {},
|
||||||
if (!this.$state.store.community) {
|
|
||||||
this.$apollo
|
|
||||||
.query({
|
|
||||||
query: communityInfo,
|
|
||||||
})
|
|
||||||
.then((result) => {
|
|
||||||
this.$store.commit('community', result.data.getCommunityInfo)
|
|
||||||
})
|
|
||||||
.catch((error) => {
|
|
||||||
this.$toasted.error(error.message)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
|
||||||
created() {
|
|
||||||
this.onCreated()
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style></style>
|
<style></style>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user