Update naming
This commit is contained in:
parent
8dd42cfc65
commit
1fecac9ba6
4 changed files with 13 additions and 13 deletions
|
@ -8,7 +8,7 @@ const FollowCard = {
|
|||
],
|
||||
data () {
|
||||
return {
|
||||
progress: false,
|
||||
inProgress: false,
|
||||
requestSent: false,
|
||||
updated: false
|
||||
}
|
||||
|
@ -25,17 +25,17 @@ const FollowCard = {
|
|||
},
|
||||
methods: {
|
||||
followUser () {
|
||||
this.progress = true
|
||||
this.inProgress = true
|
||||
requestFollow(this.user, this.$store).then(({ sent, updated }) => {
|
||||
this.progress = false
|
||||
this.inProgress = false
|
||||
this.requestSent = sent
|
||||
this.updated = updated
|
||||
})
|
||||
},
|
||||
unfollowUser () {
|
||||
this.progress = true
|
||||
this.inProgress = true
|
||||
requestUnfollow(this.user, this.$store).then(({ updated }) => {
|
||||
this.progress = false
|
||||
this.inProgress = false
|
||||
this.updated = updated
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue