add computed variable disabled

This commit is contained in:
ogerly 2022-01-19 11:03:58 +01:00
parent bae18b77d2
commit 26bbc88d87

View File

@ -162,10 +162,9 @@
</b-button>
</router-link>
<b-button
:disabled="!(namesFilled && emailFilled && form.agree && !!language)"
:disabled="disabled"
type="submit"
:variant="
!(namesFilled && emailFilled && form.agree && !!language)
:variant="disabled
? 'outline-light'
: 'primary'
"
@ -272,6 +271,9 @@ export default {
emailFilled() {
return this.form.email !== ''
},
disabled() {
return !(this.namesFilled && this.emailFilled && this.form.agree && !!this.language)
},
},
}
</script>