feat(bulk-tags): add bulk tag management modal and context menu integration

This commit is contained in:
Will Miao
2025-09-04 22:08:55 +08:00
parent a5a9f7ed83
commit 4eb67cf6da
7 changed files with 285 additions and 2 deletions

View File

@@ -234,6 +234,19 @@ export class ModalManager {
});
}
// Add bulkAddTagsModal registration
const bulkAddTagsModal = document.getElementById('bulkAddTagsModal');
if (bulkAddTagsModal) {
this.registerModal('bulkAddTagsModal', {
element: bulkAddTagsModal,
onClose: () => {
this.getModal('bulkAddTagsModal').element.style.display = 'none';
document.body.classList.remove('modal-open');
},
closeOnOutsideClick: true
});
}
document.addEventListener('keydown', this.boundHandleEscape);
this.initialized = true;
}