Add contributionDate month & year to list items.

This commit is contained in:
elweyn 2022-07-26 16:27:44 +02:00
parent 16d098d808
commit 722886fedc

View File

@ -11,6 +11,13 @@
{{ $t('math.minus') }}
<div class="mx-2">{{ $d(new Date(date), 'short') }}</div>
</div>
<div class="mr-2">
<span>{{ $t('contribution.date') }}</span>
<span>
{{ $d(new Date(contributionDate), 'month') }}
{{ $d(new Date(contributionDate), 'year') }}
</span>
</div>
<div class="mr-2">{{ memo }}</div>
<div v-if="type === 'pending' && !firstName" class="d-flex flex-row-reverse">
<div
@ -91,9 +98,10 @@ export default {
return 'primary'
},
date() {
if (this.deletedAt) return this.deletedAt
if (this.confirmedAt) return this.confirmedAt
return this.contributionDate
// if (this.deletedAt) return this.deletedAt
// if (this.confirmedAt) return this.confirmedAt
// return this.contributionDate
return this.createdAt
},
},
methods: {