mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Remove 'locale' and agreed terms and conditions version from slider data collection
This commit is contained in:
parent
c12491d2aa
commit
5b4724086c
@ -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: {
|
||||
|
||||
@ -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'
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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,
|
||||
},
|
||||
},
|
||||
}),
|
||||
|
||||
@ -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: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user