From f1ce93d306f6c24d07919d1977b300e1b07712aa Mon Sep 17 00:00:00 2001 From: Zouheir Layine Date: Wed, 2 Oct 2024 10:43:42 +0100 Subject: [PATCH] [PLA-2021] track fix (#163) --- resources/js/api/transaction.ts | 2 +- resources/js/components/SideNavbar.vue | 23 +- resources/js/components/pages/Collections.vue | 30 +++ resources/js/components/pages/Settings.vue | 7 +- .../components/pages/SettingsWalletDaemon.vue | 254 ++++++++++++------ resources/js/factory/collection.ts | 32 --- resources/js/factory/transaction.ts | 7 + .../js/graphql/query/GetCollectionIds.ts | 5 + resources/js/store/connection.ts | 25 +- resources/js/store/index.ts | 17 +- 10 files changed, 279 insertions(+), 123 deletions(-) diff --git a/resources/js/api/transaction.ts b/resources/js/api/transaction.ts index d5aa8b7..6a5e6a6 100644 --- a/resources/js/api/transaction.ts +++ b/resources/js/api/transaction.ts @@ -27,7 +27,7 @@ export class TransactionApi { results: getTransactionsData.results, accounts: getTransactionsData.accounts, after: getTransactionsData.after, - first: 20, + first: getTransactionsData.first ?? 20, }, }; diff --git a/resources/js/components/SideNavbar.vue b/resources/js/components/SideNavbar.vue index f140ad1..2fcaa5e 100644 --- a/resources/js/components/SideNavbar.vue +++ b/resources/js/components/SideNavbar.vue @@ -19,7 +19,13 @@ :to="item.to" class="text-light-content dark:text-dark-content hover:bg-light-surface-background hover:dark:bg-dark-surface-background hover:text-light-content-selected hover:dark:text-dark-content-selected group flex items-center px-4 py-3 font-medium transition-all" > - {{ item.name }} + {{ item.name }} + + {{ transactionsCount }} + @@ -92,15 +98,24 @@