mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-08-28 16:31:28 -03:00
fix(recipes): restore batch import modal on reopen and log recipe ingest progress (#1084)
This commit is contained in:
@@ -146,7 +146,13 @@ export class ModalManager {
|
||||
});
|
||||
}
|
||||
|
||||
// Add batchImportModal registration
|
||||
// Add batchImportModal registration.
|
||||
// Deliberately no closeOnOutsideClick: batch import is a stateful,
|
||||
// multi-step workflow (input -> progress -> results) that runs a
|
||||
// long-lived background operation. A stray backdrop click would
|
||||
// dismiss the modal while the import keeps running, leaving users
|
||||
// unable to tell what is still happening (issue #1084). Close is
|
||||
// available via the explicit X button / Cancel instead.
|
||||
const batchImportModal = document.getElementById('batchImportModal');
|
||||
if (batchImportModal) {
|
||||
this.registerModal('batchImportModal', {
|
||||
@@ -154,8 +160,7 @@ export class ModalManager {
|
||||
onClose: () => {
|
||||
this.getModal('batchImportModal').element.style.display = 'none';
|
||||
document.body.classList.remove('modal-open');
|
||||
},
|
||||
closeOnOutsideClick: true
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user