forked from mirrors/akkoma-fe
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: {
|
||||
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]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue