From 11205154bdc03fd8bd174d41ba62248b18e72005 Mon Sep 17 00:00:00 2001 From: Axolotle Date: Fri, 17 Jul 2020 14:20:58 +0200 Subject: [PATCH] add domain watch to preselect a domain for mail form in UserCreate --- app/src/views/user/UserCreate.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/views/user/UserCreate.vue b/app/src/views/user/UserCreate.vue index 9461a941..c2e25211 100644 --- a/app/src/views/user/UserCreate.vue +++ b/app/src/views/user/UserCreate.vue @@ -148,6 +148,11 @@ export default { return this.$store.state.data.domains } }, + watch: { + domains (domains) { + this.form.domain = domains[0] + } + }, methods: { onSubmit () { const data = this.form