This commit is contained in:
2026-09-23 15:14:54 +07:00
parent cdaa56febd
commit bd8ba94301
3 changed files with 20 additions and 2 deletions

View File

@@ -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;

View File

@@ -1035,7 +1035,7 @@
<!-- All archived asset records, including those with no outstanding borrowers. -->
<div class="modal-backdrop fixed inset-0 z-[100] flex items-center justify-center bg-black/40 backdrop-blur-sm" id="archivedAssetBorrowsModal">
<div class="modal-content bg-white rounded-xl shadow-2xl border border-slate-200 overflow-hidden flex flex-col m-4" style="width:min(1100px, calc(100vw - 32px));max-height:calc(100vh - 32px);">
<div class="modal-content bg-white rounded-xl shadow-2xl border border-slate-200 overflow-hidden flex flex-col m-3" style="width:min(1600px, calc(100vw - 24px));max-height:calc(100vh - 24px);">
<div class="px-6 py-4 border-b border-slate-100 bg-slate-50 flex items-center justify-between gap-3">
<h3 class="text-base font-extrabold text-slate-800">Tài sản cũ</h3>
<button type="button" class="p-1.5 rounded-lg hover:bg-slate-200 text-slate-500" data-close-modal="archivedAssetBorrowsModal" aria-label="Đóng">