Remove 'locale' and agreed terms and conditions version from slider data collection

This commit is contained in:
Wolfgang Huß 2021-02-27 19:28:21 +01:00
parent c12491d2aa
commit 5b4724086c
6 changed files with 14 additions and 33 deletions

View File

@ -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: {

View File

@ -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'
}

View File

@ -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

View File

@ -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

View File

@ -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,
},
},
}),

View File

@ -35,11 +35,7 @@
</template>
<template #create-user-account>
<registration-item-create-user-account
:sliderData="sliderData"
nonce="AAAAAA"
email="user@example.org"
/>
<registration-item-create-user-account :sliderData="sliderData" />
</template>
<template #footer>
@ -164,13 +160,11 @@ export default {
password: null,
passwordConfirmation: null,
about: null,
termsAndConditionsAgreedVersion: null,
termsAndConditionsConfirmed: null,
dataPrivacy: null,
minimumAge: null,
noCommercial: null,
noPolitical: null,
locale: null, // Wolle: what to do? Is collected in the last slider?! and gets stored in the database
},
sliderIndex: 0,
sliders: sliders,
@ -182,7 +176,7 @@ export default {
},
computed: {
sliderIndex() {
return this.sliderData.sliderIndex
return this.sliderData.sliderIndex // to have a shorter notation
},
},
methods: {