diff --git a/webapp/components/ComponentSlider/ComponentSlider.vue b/webapp/components/ComponentSlider/ComponentSlider.vue index ce5000d53..9ecaa5711 100644 --- a/webapp/components/ComponentSlider/ComponentSlider.vue +++ b/webapp/components/ComponentSlider/ComponentSlider.vue @@ -55,7 +55,7 @@ export default { }, computed: { sliderIndex() { - return this.sliderData.sliderIndex // have a shorter notation + return this.sliderData.sliderIndex // to have a shorter notation }, }, methods: { diff --git a/webapp/components/Registration/RegistrationItemCreateUserAccount.vue b/webapp/components/Registration/RegistrationItemCreateUserAccount.vue index 8af73c98a..c76e6f71e 100644 --- a/webapp/components/Registration/RegistrationItemCreateUserAccount.vue +++ b/webapp/components/Registration/RegistrationItemCreateUserAccount.vue @@ -249,7 +249,6 @@ export default { methods: { sendValidation() { const { name, about, password, passwordConfirmation } = this.formData - const termsAndConditionsAgreedVersion = VERSION const { termsAndConditionsConfirmed, dataPrivacy, @@ -257,22 +256,18 @@ export default { noCommercial, noPolitical, } = this - const locale = this.$i18n.locale() - // Wolle validate in backend - // toaster + this.sliderData.setSliderValuesCallback(this.validInput, { collectedInputData: { name, about, password, passwordConfirmation, - termsAndConditionsAgreedVersion, termsAndConditionsConfirmed, dataPrivacy, minimumAge, noCommercial, noPolitical, - locale, }, }) }, @@ -301,12 +296,12 @@ export default { }, }) this.response = 'success' - setTimeout(() => { - this.$emit('userCreated', { - email, - password, - }) - }, 3000) + // Wolle setTimeout(() => { + // this.$emit('userCreated', { + // email, + // password, + // }) + // }, 3000) } catch (err) { this.response = 'error' } diff --git a/webapp/components/Registration/RegistrationItemEnterEmail.vue b/webapp/components/Registration/RegistrationItemEnterEmail.vue index df96bc93c..d2b886fc5 100644 --- a/webapp/components/Registration/RegistrationItemEnterEmail.vue +++ b/webapp/components/Registration/RegistrationItemEnterEmail.vue @@ -135,7 +135,7 @@ export default { }, computed: { sliderIndex() { - return this.sliderData.sliderIndex + return this.sliderData.sliderIndex // to have a shorter notation }, // Wolle submitMessage() { // const { email } = this.data.Signup diff --git a/webapp/components/Registration/RegistrationItemEnterInvite.vue b/webapp/components/Registration/RegistrationItemEnterInvite.vue index 5b901131b..b52704224 100644 --- a/webapp/components/Registration/RegistrationItemEnterInvite.vue +++ b/webapp/components/Registration/RegistrationItemEnterInvite.vue @@ -64,7 +64,7 @@ export default { }, computed: { sliderIndex() { - return this.sliderData.sliderIndex + return this.sliderData.sliderIndex // to have a shorter notation }, validInput() { return this.formData.inviteCode.length === 6 diff --git a/webapp/components/Registration/RegistrationSlider.story.js b/webapp/components/Registration/RegistrationSlider.story.js index a7a0c80da..fc6dd3e32 100644 --- a/webapp/components/Registration/RegistrationSlider.story.js +++ b/webapp/components/Registration/RegistrationSlider.story.js @@ -60,13 +60,11 @@ storiesOf('RegistrationSlider', module) password: 'Hello', passwordConfirmation: 'Hello', about: `Hey`, - termsAndConditionsAgreedVersion: null, termsAndConditionsConfirmed: true, dataPrivacy: true, minimumAge: true, noCommercial: true, noPolitical: true, - locale: null, }, }, }), @@ -96,13 +94,11 @@ storiesOf('RegistrationSlider', module) password: 'Hello', passwordConfirmation: 'Hello', about: `Hey`, - termsAndConditionsAgreedVersion: null, termsAndConditionsConfirmed: true, dataPrivacy: true, minimumAge: true, noCommercial: true, noPolitical: true, - locale: null, }, }, }), @@ -118,19 +114,17 @@ storiesOf('RegistrationSlider', module) collectedInputData: { inviteCode: null, email: 'wolle.huss@pjannto.com', - emailSend: false, + emailSend: true, nonce: null, name: null, password: null, passwordConfirmation: null, about: null, - termsAndConditionsAgreedVersion: null, termsAndConditionsConfirmed: null, dataPrivacy: null, minimumAge: null, noCommercial: null, noPolitical: null, - locale: null, }, }, }), @@ -146,19 +140,17 @@ storiesOf('RegistrationSlider', module) collectedInputData: { inviteCode: null, email: 'wolle.huss@pjannto.com', - emailSend: null, + emailSend: true, nonce: 'NTRSCZ', name: 'Wolle', password: 'Hello', passwordConfirmation: 'Hello', about: `Hey`, - termsAndConditionsAgreedVersion: null, termsAndConditionsConfirmed: true, dataPrivacy: true, minimumAge: true, noCommercial: true, noPolitical: true, - locale: null, }, }, }), diff --git a/webapp/components/Registration/RegistrationSlider.vue b/webapp/components/Registration/RegistrationSlider.vue index 5bafc39a3..25af74e05 100644 --- a/webapp/components/Registration/RegistrationSlider.vue +++ b/webapp/components/Registration/RegistrationSlider.vue @@ -35,11 +35,7 @@