fix follow request on search page
This commit is contained in:
parent
122323f35c
commit
78e8a49f40
2 changed files with 4 additions and 6 deletions
|
@ -9,8 +9,7 @@ const FollowCard = {
|
|||
],
|
||||
data () {
|
||||
return {
|
||||
inProgress: false,
|
||||
requestSent: false
|
||||
inProgress: false
|
||||
}
|
||||
},
|
||||
components: {
|
||||
|
@ -28,9 +27,8 @@ const FollowCard = {
|
|||
methods: {
|
||||
followUser () {
|
||||
this.inProgress = true
|
||||
requestFollow(this.user, this.$store).then(({ sent }) => {
|
||||
requestFollow(this.user, this.$store).then(() => {
|
||||
this.inProgress = false
|
||||
this.requestSent = sent
|
||||
})
|
||||
},
|
||||
unfollowUser () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue