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

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