#332 - add follow/not follow button to follow list

This commit is contained in:
dave 2019-02-09 23:05:23 -05:00
parent 4bea3c525f
commit 4b18989fef
6 changed files with 158 additions and 76 deletions

View file

@ -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 () {

View file

@ -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">