1
0
Fork 0
forked from mirror/pixelfed

Update Profile.vue, add empty follower modal placeholder

This commit is contained in:
Daniel Supernault 2020-07-25 20:56:52 -06:00
parent b213dcda0b
commit b542a3c500
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -434,6 +434,10 @@
dialog-class="follow-modal" dialog-class="follow-modal"
> >
<div class="list-group"> <div class="list-group">
<div v-if="followers.length == 0" class="list-group-item border-0">
<p class="text-center mb-0 font-weight-bold text-muted py-5">
<span class="text-dark">{{profileUsername}}</span> has no followers yet</p>
</div>
<div class="list-group-item border-0 py-1" v-for="(user, index) in followers" :key="'follower_'+index"> <div class="list-group-item border-0 py-1" v-for="(user, index) in followers" :key="'follower_'+index">
<div class="media mb-0"> <div class="media mb-0">
<a :href="user.url"> <a :href="user.url">
@ -452,7 +456,7 @@
<!-- <button class="btn btn-primary font-weight-bold btn-sm py-1">FOLLOW</button> --> <!-- <button class="btn btn-primary font-weight-bold btn-sm py-1">FOLLOW</button> -->
</div> </div>
</div> </div>
<div v-if="followerMore" class="list-group-item text-center" v-on:click="followersLoadMore()"> <div v-if="followers.length && followerMore" class="list-group-item text-center" v-on:click="followersLoadMore()">
<p class="mb-0 small text-muted font-weight-light cursor-pointer">Load more</p> <p class="mb-0 small text-muted font-weight-light cursor-pointer">Load more</p>
</div> </div>
</div> </div>