From b5898d41aa9c0892b1ecb36b6ecca63e785f503e Mon Sep 17 00:00:00 2001 From: Axolotle Date: Thu, 16 Jul 2020 16:08:28 +0200 Subject: [PATCH] use the dataStore to get domains from userCreate --- app/src/views/user/UserCreate.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/app/src/views/user/UserCreate.vue b/app/src/views/user/UserCreate.vue index 393b64b7..ccc6e1d3 100644 --- a/app/src/views/user/UserCreate.vue +++ b/app/src/views/user/UserCreate.vue @@ -128,8 +128,12 @@ export default { mailbox_quota: '', password: '', confirmation: '' - }, - domains: ['f'] + } + } + }, + computed: { + domains () { + return this.$store.state.data.domains } }, methods: { @@ -142,6 +146,9 @@ export default { data.mail = `${data.email}@${data.domain}` // TODO post data } + }, + created () { + this.$store.dispatch('FETCH', 'domains') } }