mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 05:28:59 +01:00 
			
		
		
		
	chore(react/collections/table): bring back refresh
This commit is contained in:
		
							parent
							
								
									d9af0461ef
								
							
						
					
					
						commit
						e10475679b
					
				@ -151,7 +151,7 @@
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.board-view-container .board-note.shift-down {
 | 
			
		||||
  margin-top: 45px;
 | 
			
		||||
  transform: translateY(100%);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.board-view-container .board-note.editing {
 | 
			
		||||
 | 
			
		||||
@ -46,9 +46,6 @@ export default function BoardView({ note: parentNote, noteIds, viewConfig, saveC
 | 
			
		||||
    useEffect(refresh, [ parentNote, noteIds ]);
 | 
			
		||||
 | 
			
		||||
    useTriliumEvent("entitiesReloaded", ({ loadResults }) => {
 | 
			
		||||
        // TODO: Re-enable
 | 
			
		||||
        return;
 | 
			
		||||
 | 
			
		||||
        // Check if any changes affect our board
 | 
			
		||||
        const hasRelevantChanges =
 | 
			
		||||
            // React to changes in status attribute for notes in this board
 | 
			
		||||
@ -65,7 +62,6 @@ export default function BoardView({ note: parentNote, noteIds, viewConfig, saveC
 | 
			
		||||
            loadResults.getAttributeRows().some(attr => attr.name === "board:groupBy" && attr.noteId === parentNote.noteId);
 | 
			
		||||
 | 
			
		||||
        if (hasRelevantChanges) {
 | 
			
		||||
            console.log("Trigger refresh");
 | 
			
		||||
            refresh();
 | 
			
		||||
        }
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user