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: { computed: {
users () {
return this.$store.state.users.users
},
completions () { completions () {
let users = map(this.$store.state.statuses.allStatuses, 'user') let users = this.users
users = uniqBy(users, 'id')
users = merge({values: users}, defaultCollection) users = merge({values: users}, defaultCollection)
return [users] return [users]
} }