add a default domain selection in UserCreate

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

View file

@ -171,7 +171,9 @@ export default {
}
},
created () {
this.$store.dispatch('FETCH', { uri: 'domains' })
this.$store.dispatch('FETCH', { uri: 'domains' }).then(domains => {
this.form.domain = domains[0]
})
}
}
</script>