From b7b4b8116c9a56bcfdf1d2c110acacd23d2e6462 Mon Sep 17 00:00:00 2001 From: ogerly Date: Mon, 5 Jul 2021 20:53:04 +0200 Subject: [PATCH] decay show moments duration --- frontend/src/components/DecayInformation.vue | 59 ++++++++++++++++++- frontend/src/locales/de.json | 2 + .../src/views/Layout/DashboardLayout_gdd.vue | 1 - .../AccountOverview/GddTransactionList.vue | 33 ++--------- 4 files changed, 63 insertions(+), 32 deletions(-) diff --git a/frontend/src/components/DecayInformation.vue b/frontend/src/components/DecayInformation.vue index 5a5e8306d..4bd5d31be 100644 --- a/frontend/src/components/DecayInformation.vue +++ b/frontend/src/components/DecayInformation.vue @@ -1,5 +1,42 @@ diff --git a/frontend/src/locales/de.json b/frontend/src/locales/de.json index 4d85269c5..3c8098346 100644 --- a/frontend/src/locales/de.json +++ b/frontend/src/locales/de.json @@ -19,6 +19,8 @@ "en": "English" }, "decay": "Vergänglichkeit", + "resieve": "", + "form": { "cancel": "Abbrechen", "reset": "Zurücksetzen", diff --git a/frontend/src/views/Layout/DashboardLayout_gdd.vue b/frontend/src/views/Layout/DashboardLayout_gdd.vue index 517773892..9990b91f2 100755 --- a/frontend/src/views/Layout/DashboardLayout_gdd.vue +++ b/frontend/src/views/Layout/DashboardLayout_gdd.vue @@ -128,7 +128,6 @@ export default { if (result.success) { this.GdtBalance = Number(result.result.data.gdtSum) this.transactions = result.result.data.transactions - console.log('this.transactions => ', this.transactions[1].decay.decay_start) this.balance = Number(result.result.data.decay) this.bookedBalance = Number(result.result.data.balance) this.transactionCount = result.result.data.count diff --git a/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue b/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue index fdced417d..be0ccf87d 100644 --- a/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue +++ b/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue @@ -18,16 +18,15 @@ {{ item.name ? item.name : $t('decay') }}
{{ $d($moment(item.date), 'long') }}
-

{{ getTransaction(item.transaction_id) }} GDD

-

{{ getTransaction(item.transaction_id).decay }} GDD

+ -
+
i
- +
@@ -42,7 +41,7 @@ {{ $d($moment(item.date), 'long') }}
-
an:
+
{{ item.type === 'receive' ? 'von:' : 'an:' }}
{{ item.name }}
@@ -51,31 +50,9 @@ }}
{{ item.memo }}
-
- Seit deiner letzten Transaction sind -
- -
- - {{ - getTransaction(item.transaction_id).decay - ? getTransaction(item.transaction_id).decay.balance - : 'missing' - }} - -
{{}} vergangen.
-
- + - - - {{ $t('transaction.more') }} - - - {{ item }} -