From 12057e4faaafd1d78df9e4853f4bc3f38c964bd7 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Thu, 27 May 2021 18:21:57 +0200 Subject: [PATCH] added pagination buttons to transaction list --- frontend/src/apis/communityAPI.js | 2 +- frontend/src/components/PaginationButtons.vue | 32 ++++ frontend/src/views/Pages/AccountOverview.vue | 159 +++++++++--------- .../AccountOverview/GddTransactionList.vue | 127 +++++++++----- .../Pages/UserProfileTransactionList.vue | 1 + 5 files changed, 202 insertions(+), 119 deletions(-) create mode 100644 frontend/src/components/PaginationButtons.vue diff --git a/frontend/src/apis/communityAPI.js b/frontend/src/apis/communityAPI.js index 25ef10f43..b2df337b8 100644 --- a/frontend/src/apis/communityAPI.js +++ b/frontend/src/apis/communityAPI.js @@ -35,7 +35,7 @@ const communityAPI = { balance: async (sessionId) => { return apiGet(CONFIG.COMMUNITY_API_URL + 'getBalance/' + sessionId) }, - transactions: async (sessionId, firstPage = 1, items = 1000, order = 'DESC') => { + transactions: async (sessionId, firstPage = 1, items = 5, order = 'DESC') => { return apiGet( `${CONFIG.COMMUNITY_API_URL}listTransactions/${firstPage}/${items}/${order}/${sessionId}`, ) diff --git a/frontend/src/components/PaginationButtons.vue b/frontend/src/components/PaginationButtons.vue new file mode 100644 index 000000000..3ef7588ae --- /dev/null +++ b/frontend/src/components/PaginationButtons.vue @@ -0,0 +1,32 @@ + + diff --git a/frontend/src/views/Pages/AccountOverview.vue b/frontend/src/views/Pages/AccountOverview.vue index 5f262f627..33e1c99fb 100644 --- a/frontend/src/views/Pages/AccountOverview.vue +++ b/frontend/src/views/Pages/AccountOverview.vue @@ -31,93 +31,96 @@