aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorSergey Suprunenko <suprunenko.s@gmail.com>2020-05-13 22:58:08 +0200
committerSergey Suprunenko <suprunenko.s@gmail.com>2020-05-14 09:25:07 +0200
commite50857d0ffecf7639f14c7dba150e55ef9d2fe74 (patch)
tree95de8b6f802be543db5476f5c76edeea4249f347 /src/components
parentdbf9285ed7e6bb1a90271d1f708b92ef56ba2a3c (diff)
Show "it's you" label and hide follow btn for current user
Diffstat (limited to 'src/components')
-rw-r--r--src/components/follow_card/follow_card.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/follow_card/follow_card.vue b/src/components/follow_card/follow_card.vue
index 76a70730..fe2d8ab8 100644
--- a/src/components/follow_card/follow_card.vue
+++ b/src/components/follow_card/follow_card.vue
@@ -2,7 +2,7 @@
<basic-user-card :user="user">
<div class="follow-card-content-container">
<span
- v-if="!noFollowsYou && relationship.followed_by"
+ v-if="isMe || !noFollowsYou && relationship.followed_by"
class="faint"
>
{{ isMe ? $t('user_card.its_you') : $t('user_card.follows_you') }}
@@ -15,7 +15,7 @@
<RemoteFollow :user="user" />
</div>
</template>
- <template v-else>
+ <template v-else-if="!isMe">
<FollowButton
:relationship="relationship"
:label-following="$t('user_card.follow_unfollow')"