mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 21:19:01 +01:00 
			
		
		
		
	feat(views/board): allow changing group by attribute
This commit is contained in:
		
							parent
							
								
									86911100df
								
							
						
					
					
						commit
						08a93d81d7
					
				@ -111,7 +111,7 @@ export default class BoardApi {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    static async build(parentNote: FNote, viewStorage: ViewModeStorage<BoardData>) {
 | 
			
		||||
        const statusAttribute = "status"; // This should match the attribute used for grouping
 | 
			
		||||
        const statusAttribute = parentNote.getLabelValue("board:groupBy") ?? "status";
 | 
			
		||||
 | 
			
		||||
        let persistedData = await viewStorage.restore() ?? {};
 | 
			
		||||
        const { byColumn, newPersistedData } = await getBoardData(parentNote, statusAttribute, persistedData);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user