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: '',
|
mailbox_quota: '',
|
||||||
password: '',
|
password: '',
|
||||||
confirmation: ''
|
confirmation: ''
|
||||||
},
|
}
|
||||||
domains: ['f']
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
domains () {
|
||||||
|
return this.$store.state.data.domains
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -142,6 +146,9 @@ export default {
|
||||||
data.mail = `${data.email}@${data.domain}`
|
data.mail = `${data.email}@${data.domain}`
|
||||||
// TODO post data
|
// TODO post data
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
created () {
|
||||||
|
this.$store.dispatch('FETCH', 'domains')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue