Skip to content

Commit

Permalink
Hide deleted rounds in member page
Browse files Browse the repository at this point in the history
  • Loading branch information
loriswit committed Aug 26, 2021
1 parent 36ff527 commit ecb2df8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions client/src/views/Member.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
{{ round.date | moment("dddd, LL") }}
</v-subheader>

<v-list-item :class="{ deleted: round.deleted, large: round.description }">
<v-list-item :class="{ large: round.description }">

<v-list-item-content class="round">
<v-list-item-title class="round-title">
Expand Down Expand Up @@ -83,10 +83,11 @@ export default {
return this.group?.members.find(({name}) => name === this.$route.params.member);
},
consumed() {
return this.rounds.filter(({consumers}) => consumers.hasOwnProperty(this.$route.params.member))
return this.rounds.filter(({consumers, deleted}) =>
!deleted && consumers.hasOwnProperty(this.$route.params.member))
},
paid() {
return this.rounds.filter(({payer}) => payer === this.$route.params.member)
return this.rounds.filter(({payer, deleted}) => !deleted && payer === this.$route.params.member)
},
visibleRounds() {
return this.consumed.slice(0, this.amountDisplayed);
Expand Down

1 comment on commit ecb2df8

@vercel
Copy link

@vercel vercel bot commented on ecb2df8 Aug 26, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.