From e801d78e9d923df1263eb9dc78db8fdfa8637734 Mon Sep 17 00:00:00 2001 From: shpuld Date: Sun, 17 Feb 2019 18:54:22 +0200 Subject: Take over branch and fix some issues --- src/components/user_card/user_card.js | 7 +- src/components/user_card/user_card.vue | 129 +++++++++++++++++++-------------- 2 files changed, 76 insertions(+), 60 deletions(-) (limited to 'src/components/user_card') diff --git a/src/components/user_card/user_card.js b/src/components/user_card/user_card.js index a4c84716..28e22f09 100644 --- a/src/components/user_card/user_card.js +++ b/src/components/user_card/user_card.js @@ -6,9 +6,8 @@ import { requestFollow, requestUnfollow } from '../../services/follow_manipulate const UserCard = { props: [ 'user', - 'showFollows', - 'showApproval', - 'showActions' + 'noFollowsYou', + 'showApproval' ], data () { return { @@ -26,7 +25,7 @@ const UserCard = { currentUser () { return this.$store.state.users.currentUser }, following () { return this.updated ? this.updated.following : this.user.following }, showFollow () { - return this.showActions && (!this.showFollows && !this.following || this.updated && !this.updated.following) + return !this.showApproval && (!this.following || this.updated && !this.updated.following) } }, methods: { diff --git a/src/components/user_card/user_card.vue b/src/components/user_card/user_card.vue index 1fab2323..ce4edb3c 100644 --- a/src/components/user_card/user_card.vue +++ b/src/components/user_card/user_card.vue @@ -3,53 +3,55 @@ -
- -
-
-
- - {{ user.name }} +
+
+
- - -
- -
@@ -58,9 +60,16 @@ -- cgit v1.2.3-70-g09d2