mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-24 14:42:11 -03:00
feat(updates): improve check updates confirmation
This commit is contained in:
@@ -195,6 +195,18 @@ export class ModalManager {
|
||||
});
|
||||
}
|
||||
|
||||
// Add checkUpdatesConfirmModal registration
|
||||
const checkUpdatesConfirmModal = document.getElementById('checkUpdatesConfirmModal');
|
||||
if (checkUpdatesConfirmModal) {
|
||||
this.registerModal('checkUpdatesConfirmModal', {
|
||||
element: checkUpdatesConfirmModal,
|
||||
onClose: () => {
|
||||
this.getModal('checkUpdatesConfirmModal').element.classList.remove('show');
|
||||
document.body.classList.remove('modal-open');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// Add helpModal registration
|
||||
const helpModal = document.getElementById('helpModal');
|
||||
if (helpModal) {
|
||||
@@ -339,7 +351,8 @@ export class ModalManager {
|
||||
id === "duplicateDeleteModal" ||
|
||||
id === "modelDuplicateDeleteModal" ||
|
||||
id === "clearCacheModal" ||
|
||||
id === "bulkDeleteModal"
|
||||
id === "bulkDeleteModal" ||
|
||||
id === "checkUpdatesConfirmModal"
|
||||
) {
|
||||
modal.element.classList.add("show");
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user