feat(bulk-modal): refactor bulk base model modal for improved UI and functionality, fixes 352

This commit is contained in:
Will Miao
2025-09-05 17:36:54 +08:00
parent e6425dce32
commit 6dc2811af4
4 changed files with 60 additions and 64 deletions

View File

@@ -247,6 +247,19 @@ export class ModalManager {
});
}
// Register bulkBaseModelModal
const bulkBaseModelModal = document.getElementById('bulkBaseModelModal');
if (bulkBaseModelModal) {
this.registerModal('bulkBaseModelModal', {
element: bulkBaseModelModal,
onClose: () => {
this.getModal('bulkBaseModelModal').element.style.display = 'none';
document.body.classList.remove('modal-open');
},
closeOnOutsideClick: true
});
}
document.addEventListener('keydown', this.boundHandleEscape);
this.initialized = true;
}