From 91698c5f2a5c3ff2285c69aa2340ae36348d369c Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Mon, 28 Feb 2022 11:37:24 +0100 Subject: [PATCH] Revert "expose decayStartBlock to components" This reverts commit c60518d39dfe7c786f04ca7eb191b523d2a3efd1. --- 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, 4 insertions(+), 17 deletions(-) diff --git a/frontend/src/components/DecayInformation.vue b/frontend/src/components/DecayInformation.vue index e4e1ef41a..76e36c468 100644 --- a/frontend/src/components/DecayInformation.vue +++ b/frontend/src/components/DecayInformation.vue @@ -109,7 +109,6 @@ 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 6d1c48a6c..a1771997e 100755 --- a/frontend/src/views/Layout/DashboardLayout_gdd.vue +++ b/frontend/src/views/Layout/DashboardLayout_gdd.vue @@ -24,7 +24,6 @@ :gdt-balance="GdtBalance" :transactions="transactions" :transactionCount="transactionCount" - :decayStartBlock="decayStartBlock" :pending="pending" @update-balance="updateBalance" @update-transactions="updateTransactions" @@ -59,7 +58,6 @@ export default { transactions: [], bookedBalance: 0, transactionCount: 0, - decayStartBlock: null, pending: true, visible: false, } @@ -99,8 +97,7 @@ export default { this.transactions = transactionList.transactions this.balance = Number(transactionList.balance) this.bookedBalance = Number(transactionList.balance) - this.transactionCount = Number(transactionList.count) - this.decayStartBlock = new Date(transactionList.decayStartBlock) + this.transactionCount = transactionList.count this.pending = false }) .catch((error) => { diff --git a/frontend/src/views/Pages/AccountOverview.vue b/frontend/src/views/Pages/AccountOverview.vue index 7c5024b9e..b62481806 100644 --- a/frontend/src/views/Pages/AccountOverview.vue +++ b/frontend/src/views/Pages/AccountOverview.vue @@ -19,7 +19,6 @@ :pageSize="5" :timestamp="timestamp" :transaction-count="transactionCount" - :decayStartBlock="decayStartBlock" @update-transactions="updateTransactions" /> @@ -54,7 +53,6 @@ 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 f0a9d7334..881bb1b19 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 {