Skip to content
Snippets Groups Projects
Commit 55fc31ea authored by Tae Hoon's avatar Tae Hoon
Browse files

Hide followers and followees tabs when they are disabled

parent bfe2d8be
Branches
No related tags found
No related merge requests found
......@@ -112,11 +112,11 @@
<h5>{{ $t('user_card.statuses') }}</h5>
<span>{{user.statuses_count}} <br></span>
</div>
<div class="user-count" v-on:click.prevent="setProfileView('friends')">
<div class="user-count" v-on:click.prevent="setProfileView('friends')" v-if="!user.hide_followings">
<h5>{{ $t('user_card.followees') }}</h5>
<span>{{user.friends_count}}</span>
</div>
<div class="user-count" v-on:click.prevent="setProfileView('followers')">
<div class="user-count" v-on:click.prevent="setProfileView('followers')" v-if="!user.hide_followers">
<h5>{{ $t('user_card.followers') }}</h5>
<span>{{user.followers_count}}</span>
</div>
......
......@@ -15,13 +15,13 @@
:timeline-name="'user'"
:user-id="fetchBy"
/>
<div :label="$t('user_card.followees')">
<div :label="$t('user_card.followees')" v-if="!user.hide_followings">
<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')">
<div :label="$t('user_card.followers')" v-if="!user.hide_followers">
<FollowList v-if="user.followers_count > 0" :userId="userId" :showFollowers="true" />
<div class="userlist-placeholder" v-else>
<i class="icon-spin3 animate-spin"></i>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment