mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-25 23:25:43 -03:00
refactor: Enhance checkpoint download functionality with new modal and manager integration
This commit is contained in:
@@ -35,6 +35,19 @@ export class ModalManager {
|
||||
closeOnOutsideClick: true
|
||||
});
|
||||
}
|
||||
|
||||
// Add checkpointDownloadModal registration
|
||||
const checkpointDownloadModal = document.getElementById('checkpointDownloadModal');
|
||||
if (checkpointDownloadModal) {
|
||||
this.registerModal('checkpointDownloadModal', {
|
||||
element: checkpointDownloadModal,
|
||||
onClose: () => {
|
||||
this.getModal('checkpointDownloadModal').element.style.display = 'none';
|
||||
document.body.classList.remove('modal-open');
|
||||
},
|
||||
closeOnOutsideClick: true
|
||||
});
|
||||
}
|
||||
|
||||
const deleteModal = document.getElementById('deleteModal');
|
||||
if (deleteModal) {
|
||||
|
||||
Reference in New Issue
Block a user