From bd8ba943019f81e2300b28540edb1aa8a10c74dd Mon Sep 17 00:00:00 2001 From: DungTT Date: Wed, 23 Sep 2026 15:14:54 +0700 Subject: [PATCH] fix UI --- public/js/app.js | 6 +++++- public/modals.html | 2 +- test/asset-archive-ui.test.js | 14 ++++++++++++++ 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/public/js/app.js b/public/js/app.js index dfb34f8..daed8b6 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -117,7 +117,7 @@ class AccountManager { this.assetBorrows = []; this.assetBorrowSearchTerm = ''; this.assetBorrowTypeFilter = ''; - this.assetBorrowCatalogFilter = ''; + this.assetBorrowCatalogFilter = 'current'; this.myBorrowedAssetSearchTerm = ''; this.assetBorrowProductSearchTimer = undefined; this.assetBorrowProductItems = []; @@ -312,6 +312,10 @@ class AccountManager { } renderView(page) { + if (page === 'asset-borrows' && this.currentPage !== 'asset-borrows') { + this.assetBorrowCatalogFilter = 'current'; + this.assetBorrowPage = 1; + } this.currentPage = page; const mainContent = document.getElementById('mainContent'); if (!mainContent) return; diff --git a/public/modals.html b/public/modals.html index f35dbdd..be1b401 100644 --- a/public/modals.html +++ b/public/modals.html @@ -1035,7 +1035,7 @@