mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
use the dataStore to get domains from userCreate
This commit is contained in:
parent
ea51885361
commit
b5898d41aa
1 changed files with 9 additions and 2 deletions
|
@ -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')
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue