Get mentioning names from central state store.
This commit is contained in:
parent
25ecac846f
commit
aa4a9fb24f
1 changed files with 4 additions and 2 deletions
|
@ -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]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue