From 691a8c4dadd50a7d58b8ea138a5612e640e12abc Mon Sep 17 00:00:00 2001 From: ogerly Date: Thu, 23 Sep 2021 08:55:45 +0200 Subject: [PATCH] Decay better explained in transactional info --- frontend/src/components/DecayInformation.vue | 36 +++++++++++--------- frontend/src/locales/de.json | 1 + frontend/src/locales/en.json | 1 + 3 files changed, 21 insertions(+), 17 deletions(-) diff --git a/frontend/src/components/DecayInformation.vue b/frontend/src/components/DecayInformation.vue index c827b26ee..c9ffa9115 100644 --- a/frontend/src/components/DecayInformation.vue +++ b/frontend/src/components/DecayInformation.vue @@ -20,10 +20,10 @@
-
+
{{ $t('decay.last_transaction') }}
-
+
{{ $t('decay.Starting_block_decay') }}
@@ -32,7 +32,7 @@
- + {{ $d($moment.unix(decay.decayStart), 'long') }} {{ $i18n.locale === 'de' ? 'Uhr' : '' }} @@ -41,10 +41,10 @@
-
+
{{ $t('decay.past_time') }}
-
+
{{ $t('decay.since_introduction') }}
{{ duration.years }} {{ $t('decay.year') }}, @@ -64,29 +64,31 @@
-
-
{{ $t('form.amount') }}
-
{{ $t('form.amount') }}
+
+
{{ $t('decay.sent') }}
+
{{ $t('decay.received') }}
-
-
{{ balance }}
+
+
- {{ balance }}
+
+ {{ balance }}
-
+
{{ $t('decay.decay') }}
-
-
{{ decay.balance }}
+
+
- {{ decay.balance }}
+
-
+
{{ $t('decay.total') }}
-
+
- {{ parseInt(balance) + decay.balance }} + - {{ parseInt(balance) + decay.balance }}
{{ parseInt(balance) - decay.balance }} @@ -103,7 +105,7 @@ export default { name: 'DecayInformation', props: { - balance: { type: String, default: '' }, + balance: { type: Number }, type: { type: String, default: '' }, decay: { balance: '', diff --git a/frontend/src/locales/de.json b/frontend/src/locales/de.json index 851f2a376..237eaff8f 100644 --- a/frontend/src/locales/de.json +++ b/frontend/src/locales/de.json @@ -31,6 +31,7 @@ "since_introduction": "seit Einführung der Vergänglichkeit", "Starting_block_decay": "Startblock Vergänglichkeit", "toCommunity": "An die Gemeinschaft", + "total":"Gesamt", "year": "Jahre" }, "error": { diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json index 4edf8e72d..882bca8c8 100644 --- a/frontend/src/locales/en.json +++ b/frontend/src/locales/en.json @@ -31,6 +31,7 @@ "since_introduction": "Since the introduction of Decay", "Starting_block_decay": "Starting Block Decay", "toCommunity": "To the community", + "total":"Total", "year": "Years" }, "error": {