Update naming

This commit is contained in:
taehoon 2019-02-26 10:14:12 -05:00
parent 8dd42cfc65
commit 1fecac9ba6
4 changed files with 13 additions and 13 deletions

View file

@ -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
})
}