mirror of
https://akkoma.dev/AkkomaGang/akkoma-fe.git
synced 2024-11-13 20:14:42 +00:00
Add returned user to store after following.
This commit is contained in:
parent
fc268c48bc
commit
2088b3c4dd
1 changed files with 3 additions and 2 deletions
|
@ -59,8 +59,9 @@
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
followUser () {
|
followUser () {
|
||||||
this.$store.state.api.backendInteractor.followUser(this.user.id)
|
const store = this.$store
|
||||||
.then((x) => console.log)
|
store.state.api.backendInteractor.followUser(this.user.id)
|
||||||
|
.then((followedUser) => store.commit('addNewUsers', [followedUser]))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue