diff --git a/webapp/components/ComponentSlider/ComponentSlider.vue b/webapp/components/ComponentSlider/ComponentSlider.vue index 08f0d4e22..73ec81cf0 100644 --- a/webapp/components/ComponentSlider/ComponentSlider.vue +++ b/webapp/components/ComponentSlider/ComponentSlider.vue @@ -40,7 +40,11 @@ :icon="sliderData.sliders[sliderIndex].button.icon" type="submit" filled - :loading="false" + :loading=" + sliderData.sliders[sliderIndex].button.loading !== undefined + ? sliderData.sliders[sliderIndex].button.loading + : false + " :disabled="!sliderData.sliders[sliderIndex].validated" @click="onNextClick" > diff --git a/webapp/components/Registration/RegistrationSlideCreate.vue b/webapp/components/Registration/RegistrationSlideCreate.vue index 8cb2bf897..26d670ca4 100644 --- a/webapp/components/Registration/RegistrationSlideCreate.vue +++ b/webapp/components/Registration/RegistrationSlideCreate.vue @@ -284,6 +284,9 @@ export default { const termsAndConditionsAgreedVersion = VERSION const locale = this.$i18n.locale() try { + this.sliderData.setSliderValuesCallback(null, { + sliderSettings: { buttonLoading: true }, + }) await this.$apollo.mutate({ mutation: SignupVerificationMutation, variables: { @@ -298,7 +301,18 @@ export default { }, }) this.response = 'success' + setTimeout(async () => { + await this.$store.dispatch('auth/login', { email, password }) + this.$toast.success('You are logged in!') // Wolle + this.$router.push('/') + this.sliderData.setSliderValuesCallback(null, { + sliderSettings: { buttonLoading: false }, + }) + }, 3000) } catch (err) { + this.sliderData.setSliderValuesCallback(null, { + sliderSettings: { buttonLoading: false }, + }) this.response = 'error' } }, diff --git a/webapp/components/Registration/RegistrationSlideEmail.vue b/webapp/components/Registration/RegistrationSlideEmail.vue index 7e83c3996..75c1dfec5 100644 --- a/webapp/components/Registration/RegistrationSlideEmail.vue +++ b/webapp/components/Registration/RegistrationSlideEmail.vue @@ -1,5 +1,4 @@