#332 - add follow/not follow button to follow list
This commit is contained in:
parent
4bea3c525f
commit
4b18989fef
6 changed files with 158 additions and 76 deletions
|
@ -25,7 +25,8 @@ const FollowList = {
|
|||
},
|
||||
entries () {
|
||||
return this.showFollowers ? this.user.followers : this.user.friends
|
||||
}
|
||||
},
|
||||
showActions () { return this.$store.state.users.currentUser.id === this.userId }
|
||||
},
|
||||
methods: {
|
||||
fetchEntries () {
|
||||
|
|
|
@ -3,7 +3,8 @@
|
|||
<user-card
|
||||
v-for="entry in entries"
|
||||
:key="entry.id" :user="entry"
|
||||
:showFollows="true"
|
||||
:showFollows="!showFollowers"
|
||||
:showActions="showActions"
|
||||
/>
|
||||
<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