Always show my own followees/followers
This commit is contained in:
parent
55fc31ea4d
commit
ea1d7f46b5
4 changed files with 16 additions and 4 deletions
|
@ -58,6 +58,12 @@ const UserProfile = {
|
|||
},
|
||||
isExternal () {
|
||||
return this.$route.name === 'external-user-profile'
|
||||
},
|
||||
followeesTabVisible () {
|
||||
return this.isUs || !this.user.hide_followings
|
||||
},
|
||||
followersTabVisible () {
|
||||
return this.isUs || !this.user.hide_followers
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
|
@ -15,13 +15,13 @@
|
|||
:timeline-name="'user'"
|
||||
:user-id="fetchBy"
|
||||
/>
|
||||
<div :label="$t('user_card.followees')" v-if="!user.hide_followings">
|
||||
<div :label="$t('user_card.followees')" v-if="followeesTabVisible">
|
||||
<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')" v-if="!user.hide_followers">
|
||||
<div :label="$t('user_card.followers')" v-if="followersTabVisible">
|
||||
<FollowList v-if="user.followers_count > 0" :userId="userId" :showFollowers="true" />
|
||||
<div class="userlist-placeholder" v-else>
|
||||
<i class="icon-spin3 animate-spin"></i>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue