diff --git a/frontend/src/components/TransactionRows/DateRow.vue b/frontend/src/components/TransactionRows/DateRow.vue
index 5daccfa69..0c72907fe 100644
--- a/frontend/src/components/TransactionRows/DateRow.vue
+++ b/frontend/src/components/TransactionRows/DateRow.vue
@@ -2,12 +2,11 @@
- {{ $t('form.date') }}
+ {{ diffNow ? $t('gdd_per_link.expired') : $t('form.date') }}
- {{ $d(new Date(balanceDate), 'long') }}
- {{ $i18n.locale === 'de' ? 'Uhr' : '' }}
+ {{ dateString }}
@@ -17,10 +16,22 @@
export default {
name: 'DateRow',
props: {
- balanceDate: {
+ date: {
type: String,
required: true,
},
+ diffNow: {
+ type: Boolean,
+ required: false,
+ default: false,
+ },
+ },
+ computed: {
+ dateString() {
+ return this.diffNow
+ ? this.$moment(this.date).locale(this.$i18n.locale).fromNow()
+ : this.$d(new Date(this.date), 'long')
+ },
},
}