Get mentioning names from central state store.

This commit is contained in:
Roger Braun 2016-11-30 18:30:43 +01:00
parent 25ecac846f
commit aa4a9fb24f

View file

@ -92,9 +92,11 @@ const PostStatusForm = {
}
},
computed: {
users () {
return this.$store.state.users.users
},
completions () {
let users = map(this.$store.state.statuses.allStatuses, 'user')
users = uniqBy(users, 'id')
let users = this.users
users = merge({values: users}, defaultCollection)
return [users]
}