Take over branch and fix some issues
This commit is contained in:
parent
5d0e51cae3
commit
e801d78e9d
5 changed files with 81 additions and 64 deletions
|
|
@ -26,7 +26,9 @@ const FollowList = {
|
|||
entries () {
|
||||
return this.showFollowers ? this.user.followers : this.user.friends
|
||||
},
|
||||
showActions () { return this.$store.state.users.currentUser.id === this.userId }
|
||||
showFollowsYou () {
|
||||
return !this.showFollowers || (this.showFollowers && this.userId !== this.$store.state.users.currentUser.id)
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
fetchEntries () {
|
||||
|
|
|
|||
|
|
@ -3,8 +3,7 @@
|
|||
<user-card
|
||||
v-for="entry in entries"
|
||||
:key="entry.id" :user="entry"
|
||||
:showFollows="!showFollowers"
|
||||
:showActions="showActions"
|
||||
:noFollowsYou="!showFollowsYou"
|
||||
/>
|
||||
<div class="text-center panel-footer">
|
||||
<a v-if="error" @click="fetchEntries" class="alert error">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue