add domain watch to preselect a domain for mail form in UserCreate

This commit is contained in:
Axolotle 2020-07-17 14:20:58 +02:00
parent 474e70fa92
commit 11205154bd

View file

@ -148,6 +148,11 @@ export default {
return this.$store.state.data.domains return this.$store.state.data.domains
} }
}, },
watch: {
domains (domains) {
this.form.domain = domains[0]
}
},
methods: { methods: {
onSubmit () { onSubmit () {
const data = this.form const data = this.form