mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
add computed variable disabled
This commit is contained in:
parent
bae18b77d2
commit
26bbc88d87
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user