From c60518d39dfe7c786f04ca7eb191b523d2a3efd1 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Sun, 27 Feb 2022 13:40:25 +0100 Subject: [PATCH] expose decayStartBlock to components --- frontend/src/components/DecayInformation.vue | 1 + frontend/src/views/Layout/DashboardLayout_gdd.vue | 5 ++++- frontend/src/views/Pages/AccountOverview.vue | 2 ++ .../Pages/AccountOverview/GddTransactionList.vue | 12 +++++++++--- .../src/views/Pages/UserProfileTransactionList.vue | 1 + 5 files changed, 17 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/DecayInformation.vue b/frontend/src/components/DecayInformation.vue index 76e36c468..e4e1ef41a 100644 --- a/frontend/src/components/DecayInformation.vue +++ b/frontend/src/components/DecayInformation.vue @@ -109,6 +109,7 @@ export default { name: 'DecayInformation', props: { + decayStartBlock: { type: Date, default: null }, type: { type: String, default: '' }, decay: { decay: '', diff --git a/frontend/src/views/Layout/DashboardLayout_gdd.vue b/frontend/src/views/Layout/DashboardLayout_gdd.vue index a1771997e..6d1c48a6c 100755 --- a/frontend/src/views/Layout/DashboardLayout_gdd.vue +++ b/frontend/src/views/Layout/DashboardLayout_gdd.vue @@ -24,6 +24,7 @@ :gdt-balance="GdtBalance" :transactions="transactions" :transactionCount="transactionCount" + :decayStartBlock="decayStartBlock" :pending="pending" @update-balance="updateBalance" @update-transactions="updateTransactions" @@ -58,6 +59,7 @@ export default { transactions: [], bookedBalance: 0, transactionCount: 0, + decayStartBlock: null, pending: true, visible: false, } @@ -97,7 +99,8 @@ export default { this.transactions = transactionList.transactions this.balance = Number(transactionList.balance) this.bookedBalance = Number(transactionList.balance) - this.transactionCount = transactionList.count + this.transactionCount = Number(transactionList.count) + this.decayStartBlock = new Date(transactionList.decayStartBlock) this.pending = false }) .catch((error) => { diff --git a/frontend/src/views/Pages/AccountOverview.vue b/frontend/src/views/Pages/AccountOverview.vue index b62481806..7c5024b9e 100644 --- a/frontend/src/views/Pages/AccountOverview.vue +++ b/frontend/src/views/Pages/AccountOverview.vue @@ -19,6 +19,7 @@ :pageSize="5" :timestamp="timestamp" :transaction-count="transactionCount" + :decayStartBlock="decayStartBlock" @update-transactions="updateTransactions" /> @@ -53,6 +54,7 @@ export default { type: Boolean, default: true, }, + decayStartBlock: { type: Date, default: null }, }, methods: { updateTransactions(pagination) { diff --git a/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue b/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue index 881bb1b19..f0a9d7334 100644 --- a/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue +++ b/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue @@ -85,7 +85,7 @@ - +
- +
- +
[], }, transactionCount: { type: Number, default: 0 }, + decayStartBlock: { type: Date, default: null }, }, data() { return {