Combine friends/followers
This commit is contained in:
parent
b614cb94e5
commit
18ae7bd5f3
9 changed files with 58 additions and 107 deletions
|
@ -1,8 +1,7 @@
|
|||
import UserCardContent from '../user_card_content/user_card_content.vue'
|
||||
import UserCard from '../user_card/user_card.vue'
|
||||
import Timeline from '../timeline/timeline.vue'
|
||||
import FriendsList from '../friends_list/friends_list.vue'
|
||||
import FollowersList from '../followers_list/followers_list.vue'
|
||||
import FollowList from '../follow_list/follow_list.vue'
|
||||
|
||||
const UserProfile = {
|
||||
created () {
|
||||
|
@ -102,8 +101,7 @@ const UserProfile = {
|
|||
UserCardContent,
|
||||
UserCard,
|
||||
Timeline,
|
||||
FriendsList,
|
||||
FollowersList
|
||||
FollowList
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -16,13 +16,13 @@
|
|||
:user-id="fetchBy"
|
||||
/>
|
||||
<div :label="$t('user_card.followees')">
|
||||
<FriendsList v-if="user.friends_count > 0" :userId="userId" />
|
||||
<FollowList v-if="user.friends_count > 0" :userId="userId" :showFollowers="false" />
|
||||
<div class="userlist-placeholder" v-else>
|
||||
<i class="icon-spin3 animate-spin"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div :label="$t('user_card.followers')">
|
||||
<FollowersList v-if="user.followers_count > 0" :userId="userId" />
|
||||
<FollowList v-if="user.followers_count > 0" :userId="userId" :showFollowers="true" />
|
||||
<div class="userlist-placeholder" v-else>
|
||||
<i class="icon-spin3 animate-spin"></i>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue