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>
|
</b-button>
|
||||||
</router-link>
|
</router-link>
|
||||||
<b-button
|
<b-button
|
||||||
:disabled="!(namesFilled && emailFilled && form.agree && !!language)"
|
:disabled="disabled"
|
||||||
type="submit"
|
type="submit"
|
||||||
:variant="
|
:variant="disabled
|
||||||
!(namesFilled && emailFilled && form.agree && !!language)
|
|
||||||
? 'outline-light'
|
? 'outline-light'
|
||||||
: 'primary'
|
: 'primary'
|
||||||
"
|
"
|
||||||
@ -272,6 +271,9 @@ export default {
|
|||||||
emailFilled() {
|
emailFilled() {
|
||||||
return this.form.email !== ''
|
return this.form.email !== ''
|
||||||
},
|
},
|
||||||
|
disabled() {
|
||||||
|
return !(this.namesFilled && this.emailFilled && this.form.agree && !!this.language)
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user