Enhance CheckpointModal: Implement detailed checkpoint display, editable fields, and showcase functionality

This commit is contained in:
Will Miao
2025-04-10 22:25:40 +08:00
parent 42309edef4
commit cbfb9ac87c
3 changed files with 960 additions and 74 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -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', {

View File

@@ -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>