Use lookup endpoint to obtain users by nickname
This commit is contained in:
parent
2afe1539d9
commit
09f9640be1
3 changed files with 38 additions and 5 deletions
|
|
@ -285,6 +285,13 @@ const users = {
|
|||
return user
|
||||
})
|
||||
},
|
||||
fetchUserByName (store, name) {
|
||||
return store.rootState.api.backendInteractor.fetchUserByName({ name })
|
||||
.then((user) => {
|
||||
store.commit('addNewUsers', [user])
|
||||
return user
|
||||
})
|
||||
},
|
||||
fetchUserRelationship (store, id) {
|
||||
if (store.state.currentUser) {
|
||||
store.rootState.api.backendInteractor.fetchUserRelationship({ id })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue