web: rudimentary lazy loading for modals
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
		@ -136,6 +136,11 @@ export class ModalButton extends LitElement {
 | 
			
		||||
        if (!this.href) {
 | 
			
		||||
            this.updateHandlers();
 | 
			
		||||
            this.open = true;
 | 
			
		||||
            this.querySelectorAll("*").forEach(child => {
 | 
			
		||||
                if ("requestUpdate" in child) {
 | 
			
		||||
                    (child as LitElement).requestUpdate();
 | 
			
		||||
                }
 | 
			
		||||
            });
 | 
			
		||||
        } else {
 | 
			
		||||
            const request = new Request(this.href);
 | 
			
		||||
            fetch(request, {
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user