diff --git a/frontend/src/views/Layout/DashboardLayout_gdd.vue b/frontend/src/views/Layout/DashboardLayout_gdd.vue index fdb9f3414..b0bf13b8e 100755 --- a/frontend/src/views/Layout/DashboardLayout_gdd.vue +++ b/frontend/src/views/Layout/DashboardLayout_gdd.vue @@ -145,11 +145,11 @@ export default { } }, async updateGdt() { - // const result2 = await communityAPI.transactionsgdt(this.$store.state.sessionId) - // console.log(' communityAPI.transactionsgdt') - // console.log(result2) + const result2 = await communityAPI.transactionsgdt(this.$store.state.sessionId) + console.log(' communityAPI.transactionsgdt') + console.log(result2) - this.transactionsGdt = [ + this.transactionsGdt = { state: 'success', gdt: [ @@ -208,9 +208,8 @@ export default { ], transactionGdtExecutingCount: 4500, count: 4, - }, - ] - this.transactionGdtCount = this.transactionsGdt[0].count + } + this.transactionGdtCount = this.transactionsGdt.count // console.log('transactionGdtCount', this.transactionGdtCount) }, updateBalance(ammount) { diff --git a/frontend/src/views/Pages/AccountOverview/GdtTransactionList.vue b/frontend/src/views/Pages/AccountOverview/GdtTransactionList.vue index d20d35af2..004a56f80 100644 --- a/frontend/src/views/Pages/AccountOverview/GdtTransactionList.vue +++ b/frontend/src/views/Pages/AccountOverview/GdtTransactionList.vue @@ -14,7 +14,7 @@ amount2, factor2, gdt, - } in this.transactionsGdt[0].gdt" + } in this.transactionsGdt.gdt" :key="id" >
diff --git a/frontend/src/views/Pages/UserProfileTransactionList.spec.js b/frontend/src/views/Pages/UserProfileTransactionList.spec.js index 61d154c6d..b051a0536 100644 --- a/frontend/src/views/Pages/UserProfileTransactionList.spec.js +++ b/frontend/src/views/Pages/UserProfileTransactionList.spec.js @@ -25,7 +25,7 @@ describe('UserProfileTransactionList', () => { }) it('emits update-transactions after creation', () => { - expect(wrapper.emitted('update-transactions')).toEqual( + expect(wrapper.emitted('update-transactions')).toEqual( expect.arrayContaining([expect.arrayContaining([{ firstPage: 1, items: 25 }])]), ) }) diff --git a/frontend/src/views/Pages/UserProfileTransactionList.vue b/frontend/src/views/Pages/UserProfileTransactionList.vue index 75703f41f..68d02d482 100644 --- a/frontend/src/views/Pages/UserProfileTransactionList.vue +++ b/frontend/src/views/Pages/UserProfileTransactionList.vue @@ -19,6 +19,7 @@ @@ -55,6 +56,9 @@ export default { updateTransactions(pagination) { this.$emit('update-transactions', pagination) }, + updateGdt() { + this.$emit('update-gdt') + }, }, }