diff options
| author | dave <starpumadev@gmail.com> | 2019-03-19 14:36:27 -0400 |
|---|---|---|
| committer | dave <starpumadev@gmail.com> | 2019-03-19 14:36:27 -0400 |
| commit | 07b8115a37a22b2a7d935154e8231c8a90f199d6 (patch) | |
| tree | f7f430d2686935bff4f8884e1bf5be90ed7d5130 /src/components/follow_card/follow_card.vue | |
| parent | 96f9eab7009b30ea71b94c1f4de5180e25b2d75f (diff) | |
#444 - show `remote follow` button when logged out
Diffstat (limited to 'src/components/follow_card/follow_card.vue')
| -rw-r--r-- | src/components/follow_card/follow_card.vue | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/components/follow_card/follow_card.vue b/src/components/follow_card/follow_card.vue index 6cb064eb..9bd21cfd 100644 --- a/src/components/follow_card/follow_card.vue +++ b/src/components/follow_card/follow_card.vue @@ -4,9 +4,12 @@ <span class="faint" v-if="!noFollowsYou && user.follows_you"> {{ isMe ? $t('user_card.its_you') : $t('user_card.follows_you') }} </span> + <div class="btn-follow" v-if="showFollow && !loggedIn"> + <RemoteFollow :user="user" /> + </div> <button - v-if="showFollow" - class="btn btn-default" + v-if="showFollow && loggedIn" + class="btn btn-default btn-follow" @click="followUser" :disabled="inProgress" :title="requestSent ? $t('user_card.follow_again') : ''" @@ -44,7 +47,7 @@ flex-wrap: wrap; line-height: 1.5em; - .btn { + .btn-follow { margin-top: 0.5em; margin-left: auto; width: 10em; |
