mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Cleanup #2
This commit is contained in:
parent
eeb5006e24
commit
f4fc225633
@ -227,14 +227,14 @@ export default {
|
||||
: false
|
||||
this.sendValidation()
|
||||
|
||||
this.sliderData.setSliderValuesCallback(this.valid, {
|
||||
this.sliderData.setSliderValuesCallback(this.validInput, {
|
||||
sliderSettings: { buttonSliderCallback: this.onNextClick },
|
||||
})
|
||||
})
|
||||
},
|
||||
computed: {
|
||||
valid() {
|
||||
const isValid =
|
||||
validInput() {
|
||||
return (
|
||||
this.formData.name.length >= 3 &&
|
||||
this.formData.password.length >= 1 &&
|
||||
this.formData.password === this.formData.passwordConfirmation &&
|
||||
@ -243,7 +243,7 @@ export default {
|
||||
this.minimumAge &&
|
||||
this.noCommercial &&
|
||||
this.noPolitical
|
||||
return isValid
|
||||
)
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
@ -275,22 +275,23 @@ export default {
|
||||
noPolitical,
|
||||
} = this
|
||||
const locale = this.$i18n.locale()
|
||||
const values = {
|
||||
name,
|
||||
about,
|
||||
password,
|
||||
passwordConfirmation,
|
||||
termsAndConditionsAgreedVersion,
|
||||
termsAndConditionsConfirmed,
|
||||
dataPrivacy,
|
||||
minimumAge,
|
||||
noCommercial,
|
||||
noPolitical,
|
||||
locale,
|
||||
}
|
||||
// Wolle validate in backend
|
||||
// toaster
|
||||
this.sliderData.setSliderValuesCallback(this.valid, { collectedInputData: values })
|
||||
this.sliderData.setSliderValuesCallback(this.validInput, {
|
||||
collectedInputData: {
|
||||
name,
|
||||
about,
|
||||
password,
|
||||
passwordConfirmation,
|
||||
termsAndConditionsAgreedVersion,
|
||||
termsAndConditionsConfirmed,
|
||||
dataPrivacy,
|
||||
minimumAge,
|
||||
noCommercial,
|
||||
noPolitical,
|
||||
locale,
|
||||
},
|
||||
})
|
||||
},
|
||||
async handleInput() {
|
||||
this.sendValidation()
|
||||
|
||||
@ -164,9 +164,8 @@ export default {
|
||||
this.formData.email = normalizeEmail(this.formData.email)
|
||||
}
|
||||
const { email } = this.formData
|
||||
const values = { email }
|
||||
|
||||
this.sliderData.setSliderValuesCallback(this.validInput, { collectedInputData: values })
|
||||
this.sliderData.setSliderValuesCallback(this.validInput, { collectedInputData: { email } })
|
||||
},
|
||||
async handleInput() {
|
||||
this.sendValidation()
|
||||
|
||||
@ -73,14 +73,13 @@ export default {
|
||||
methods: {
|
||||
async sendValidation() {
|
||||
const { inviteCode } = this.formData
|
||||
const values = { inviteCode }
|
||||
|
||||
let validated = false
|
||||
if (this.validInput) {
|
||||
await this.handleSubmitVerify()
|
||||
validated = this.sliderData.sliders[this.sliderIndex].data.response.isValidInviteCode
|
||||
}
|
||||
this.sliderData.setSliderValuesCallback(validated, { collectedInputData: values })
|
||||
this.sliderData.setSliderValuesCallback(validated, { collectedInputData: { inviteCode } })
|
||||
},
|
||||
async handleInput() {
|
||||
this.sendValidation()
|
||||
|
||||
@ -62,24 +62,24 @@ export default {
|
||||
this.sendValidation()
|
||||
|
||||
// Wolle this.sliderData.setSliderValuesCallback(this.validInput, {}, {}, this.onNextClick)
|
||||
this.sliderData.setSliderValuesCallback(this.valid, {
|
||||
this.sliderData.setSliderValuesCallback(this.validInput, {
|
||||
sliderSettings: { buttonSliderCallback: this.onNextClick },
|
||||
})
|
||||
})
|
||||
},
|
||||
computed: {
|
||||
valid() {
|
||||
validInput() {
|
||||
return this.formData.nonce.length === 6
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
sendValidation() {
|
||||
const { nonce } = this.formData
|
||||
const values = {
|
||||
nonce,
|
||||
}
|
||||
// console.log('sendValidation !!! value: ', value)
|
||||
this.sliderData.setSliderValuesCallback(this.valid, { collectedInputData: values })
|
||||
this.sliderData.setSliderValuesCallback(this.validInput, {
|
||||
collectedInputData: {
|
||||
nonce,
|
||||
},
|
||||
})
|
||||
},
|
||||
async handleInput() {
|
||||
// this.disabled = true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user