diff options
| author | Sean King <seanking2919@protonmail.com> | 2022-09-17 11:36:34 -0600 |
|---|---|---|
| committer | Sean King <seanking2919@protonmail.com> | 2022-09-17 11:36:34 -0600 |
| commit | 3c707608ce828a2221e496df48bd2b3f9aecd5d4 (patch) | |
| tree | d2cfe4c6a3ff5452ef944f837976fb076035be16 /src/components/follow_card | |
| parent | 12d8d1711bb41b14c35914cb82a6d5f41943e198 (diff) | |
Change "Remove this follower" to "Remove Follower" and add a button to remove a follower in the followers tab for the logged in user
Diffstat (limited to 'src/components/follow_card')
| -rw-r--r-- | src/components/follow_card/follow_card.js | 4 | ||||
| -rw-r--r-- | src/components/follow_card/follow_card.vue | 11 |
2 files changed, 14 insertions, 1 deletions
diff --git a/src/components/follow_card/follow_card.js b/src/components/follow_card/follow_card.js index 6dcb6d47..b26b27a7 100644 --- a/src/components/follow_card/follow_card.js +++ b/src/components/follow_card/follow_card.js @@ -1,6 +1,7 @@ import BasicUserCard from '../basic_user_card/basic_user_card.vue' import RemoteFollow from '../remote_follow/remote_follow.vue' import FollowButton from '../follow_button/follow_button.vue' +import RemoveFollowerButton from '../remove_follower_button/remove_follower_button.vue' const FollowCard = { props: [ @@ -10,7 +11,8 @@ const FollowCard = { components: { BasicUserCard, RemoteFollow, - FollowButton + FollowButton, + RemoveFollowerButton }, computed: { isMe () { diff --git a/src/components/follow_card/follow_card.vue b/src/components/follow_card/follow_card.vue index 895a8fa3..c919b11a 100644 --- a/src/components/follow_card/follow_card.vue +++ b/src/components/follow_card/follow_card.vue @@ -22,6 +22,11 @@ class="follow-card-follow-button" :user="user" /> + <RemoveFollowerButton + v-if="noFollowsYou && relationship.followed_by" + :relationship="relationship" + class="follow-card-button" + /> </template> </div> </basic-user-card> @@ -40,6 +45,12 @@ line-height: 1.5em; } + &-button { + margin-top: 0.5em; + padding: 0 1.5em; + margin-left: 1em; + } + &-follow-button { margin-top: 0.5em; margin-left: auto; |
