Get mentioning names from central state store.
This commit is contained in:
parent
25ecac846f
commit
aa4a9fb24f
@ -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 New Issue
Block a user