apply get community info mixin in all Register Components

This commit is contained in:
Moriz Wahl 2021-10-28 11:39:07 +02:00
parent 2ac675287c
commit 36374b968f
3 changed files with 6 additions and 8 deletions

View File

@ -161,12 +161,12 @@ import InputEmail from '../../components/Inputs/InputEmail.vue'
import InputPasswordConfirmation from '../../components/Inputs/InputPasswordConfirmation.vue'
import LanguageSwitchSelect from '../../components/LanguageSwitchSelect.vue'
import { registerUser } from '../../graphql/mutations'
import { getCommunityInfo } from '../../mixin/getCommunityInfo'
import { getCommunityInfoMixin } from '../../mixin/getCommunityInfo'
export default {
components: { InputPasswordConfirmation, InputEmail, LanguageSwitchSelect },
name: 'register',
mixins: [getCommunityInfo],
mixins: [getCommunityInfoMixin],
data() {
return {
form: {

View File

@ -49,15 +49,11 @@
</div>
</template>
<script>
import { getCommunityInfo } from '../../mixin/getCommunityInfo'
import { getCommunityInfoMixin } from '../../mixin/getCommunityInfo'
export default {
name: 'registerCommunity',
data() {
return {}
},
mixins: [getCommunityInfo],
methods: {},
mixins: [getCommunityInfoMixin],
}
</script>
<style></style>

View File

@ -49,6 +49,7 @@
</template>
<script>
import { communities } from '../../graphql/queries'
import { getCommunityInfoMixin } from '../../mixin/getCommunityInfo'
export default {
name: 'registerSelectCommunity',
@ -58,6 +59,7 @@ export default {
pending: true,
}
},
mixins: [getCommunityInfoMixin],
methods: {
async getCommunities() {
const loader = this.$loading.show({