diff options
| author | Maksim Pechnikov <parallel588@gmail.com> | 2019-10-09 08:15:37 +0300 |
|---|---|---|
| committer | Maksim Pechnikov <parallel588@gmail.com> | 2019-10-09 08:15:37 +0300 |
| commit | f6c0e06884a39f6656db97249b6f68777beb5ed6 (patch) | |
| tree | 1f93c582e643275f3be4d0d332d33b72c7a71f8f /src | |
| parent | 7fede8572d9b67060ed5b12b5f6df257233da8bd (diff) | |
| parent | 7d3330b7b673f5071987cf1e996695aea026f158 (diff) | |
Merge branch 'develop' into feature/following_reblogs
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/follow_card/follow_card.js | 6 | ||||
| -rw-r--r-- | src/components/follow_card/follow_card.vue | 4 |
2 files changed, 4 insertions, 6 deletions
diff --git a/src/components/follow_card/follow_card.js b/src/components/follow_card/follow_card.js index dc4a0d41..118d0c7c 100644 --- a/src/components/follow_card/follow_card.js +++ b/src/components/follow_card/follow_card.js @@ -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 () { diff --git a/src/components/follow_card/follow_card.vue b/src/components/follow_card/follow_card.vue index 310fe843..a9d237bb 100644 --- a/src/components/follow_card/follow_card.vue +++ b/src/components/follow_card/follow_card.vue @@ -20,13 +20,13 @@ v-if="!user.following" class="btn btn-default follow-card-follow-button" :disabled="inProgress" - :title="requestSent ? $t('user_card.follow_again') : ''" + :title="user.requested ? $t('user_card.follow_again') : ''" @click="followUser" > <template v-if="inProgress"> {{ $t('user_card.follow_progress') }} </template> - <template v-else-if="requestSent"> + <template v-else-if="user.requested"> {{ $t('user_card.follow_sent') }} </template> <template v-else> |
