mirror of
https://github.com/IT4Change/gradido.git
synced 2026-01-20 20:01:31 +00:00
apply get community info mixin in all Register Components
This commit is contained in:
parent
2ac675287c
commit
36374b968f
@ -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: {
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user