mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-22 05:32:12 -03:00
Enhance CheckpointModal: Implement detailed checkpoint display, editable fields, and showcase functionality
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -23,6 +23,19 @@ export class ModalManager {
|
||||
});
|
||||
}
|
||||
|
||||
// Add checkpointModal registration
|
||||
const checkpointModal = document.getElementById('checkpointModal');
|
||||
if (checkpointModal) {
|
||||
this.registerModal('checkpointModal', {
|
||||
element: checkpointModal,
|
||||
onClose: () => {
|
||||
this.getModal('checkpointModal').element.style.display = 'none';
|
||||
document.body.classList.remove('modal-open');
|
||||
},
|
||||
closeOnOutsideClick: true
|
||||
});
|
||||
}
|
||||
|
||||
const deleteModal = document.getElementById('deleteModal');
|
||||
if (deleteModal) {
|
||||
this.registerModal('deleteModal', {
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
<!-- Model details Modal -->
|
||||
<div id="loraModal" class="modal"></div>
|
||||
|
||||
<!-- Checkpoint details Modal -->
|
||||
<div id="checkpointModal" class="modal"></div>
|
||||
|
||||
<!-- Download from URL Modal -->
|
||||
<div id="downloadModal" class="modal">
|
||||
<div class="modal-content">
|
||||
@@ -111,4 +114,4 @@
|
||||
<button class="primary-btn" onclick="moveManager.moveModel()">Move</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user