mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	section widgets are updated lazily
This commit is contained in:
		| @@ -43,22 +43,6 @@ export default class LinkMapWidget extends NoteContextAwareWidget { | ||||
|     } | ||||
|  | ||||
|     async refreshWithNote(note) { | ||||
|         let shown = false; | ||||
|  | ||||
|         const observer = new IntersectionObserver(entries => { | ||||
|             if (!shown && entries[0].isIntersecting) { | ||||
|                 shown = true; | ||||
|                 this.displayLinkMap(note); | ||||
|             } | ||||
|         }, { | ||||
|             rootMargin: '0px', | ||||
|             threshold: 0.1 | ||||
|         }); | ||||
|  | ||||
|         observer.observe(this.$widget[0]); | ||||
|     } | ||||
|  | ||||
|     async displayLinkMap(note) { | ||||
|         this.$widget.find(".link-map-container").empty(); | ||||
|  | ||||
|         const $linkMapContainer = this.$widget.find('.link-map-container'); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user