diff --git a/frontend/src/components/TransactionRows/DateRow.vue b/frontend/src/components/TransactionRows/DateRow.vue index 5f526caaf..5998be134 100644 --- a/frontend/src/components/TransactionRows/DateRow.vue +++ b/frontend/src/components/TransactionRows/DateRow.vue @@ -3,7 +3,7 @@
- {{ diffNow ? $t('gdd_per_link.valid_until') : $t('form.date') }} + {{ text }}
@@ -27,6 +27,20 @@ export default { required: false, default: false, }, + validLink: { + type: Boolean, + required: false, + default: false, + }, + }, + computed: { + text() { + if (this.diffNow) + return this.validLink + ? this.$t('gdd_per_link.validUntil') + : this.$t('gdd_per_link.expiredOn') + return this.$t('form.date') + }, }, }