Add settings links to modals; update click handler for Lora modal

This commit is contained in:
Will Miao
2025-02-15 11:41:10 +08:00
parent a2428b31b5
commit f4139ea2a5
3 changed files with 78 additions and 2 deletions

View File

@@ -54,8 +54,8 @@ export class ModalManager {
isOpen: false
});
// Only add click outside handler if it's not the download modal
if (id !== 'downloadModal') {
// Only add click outside handler if it's the lora modal
if (id == 'loraModal') {
config.element.addEventListener('click', (e) => {
if (e.target === config.element) {
this.closeModal(id);