mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-22 05:32:12 -03:00
feat(bulk-modal): refactor bulk base model modal for improved UI and functionality, fixes 352
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user