aboutsummaryrefslogtreecommitdiff
path: root/src/components/user_profile/user_profile.vue
diff options
context:
space:
mode:
authortaehoon <th.dev91@gmail.com>2019-04-03 22:28:08 -0400
committertaehoon <th.dev91@gmail.com>2019-04-17 11:32:48 -0400
commit738a3dc02da7a3633137e8f0831ec8404e1ba85b (patch)
tree0d25013f42ccc6c867245277ff3519b335750acb /src/components/user_profile/user_profile.vue
parent1cec2b696952ef2c472219329961bc102ed315df (diff)
refactor using List component
Diffstat (limited to 'src/components/user_profile/user_profile.vue')
-rw-r--r--src/components/user_profile/user_profile.vue12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/components/user_profile/user_profile.vue b/src/components/user_profile/user_profile.vue
index 89900f60..39f3c381 100644
--- a/src/components/user_profile/user_profile.vue
+++ b/src/components/user_profile/user_profile.vue
@@ -14,10 +14,18 @@
:user-id="userId"
/>
<div :label="$t('user_card.followees')" v-if="followsTabVisible" :disabled="!user.friends_count">
- <FriendList :userId="userId" />
+ <FriendList :userId="userId">
+ <template slot="item" scope="p">
+ <FollowCard :key="p.item.id" :user="p.item" />
+ </template>
+ </FriendList>
</div>
<div :label="$t('user_card.followers')" v-if="followersTabVisible" :disabled="!user.followers_count">
- <FollowerList :userId="userId" :entryProps="{noFollowsYou: isUs}" />
+ <FollowerList :userId="userId">
+ <template slot="item" scope="p">
+ <FollowCard :key="p.item.id" :user="p.item" :noFollowsYou="isUs" />
+ </template>
+ </FollowerList>
</div>
<Timeline
:label="$t('user_card.media')"