mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 11:39:01 +01:00 
			
		
		
		
	fix(views/table): show/hide columns not always updated properly
This commit is contained in:
		
							parent
							
								
									4cc2fa5300
								
							
						
					
					
						commit
						38fce25b86
					
				| @ -88,11 +88,11 @@ function showColumnContextMenu(_e: UIEvent, column: ColumnComponent, tabulator: | |||||||
|     function buildColumnItems() { |     function buildColumnItems() { | ||||||
|         const items: MenuItem<unknown>[] = []; |         const items: MenuItem<unknown>[] = []; | ||||||
|         for (const column of tabulator.getColumns()) { |         for (const column of tabulator.getColumns()) { | ||||||
|             const { title, visible, field } = column.getDefinition(); |             const { title, field } = column.getDefinition(); | ||||||
| 
 | 
 | ||||||
|             items.push({ |             items.push({ | ||||||
|                 title, |                 title, | ||||||
|                 checked: visible, |                 checked: column.isVisible(), | ||||||
|                 uiIcon: "bx bx-empty", |                 uiIcon: "bx bx-empty", | ||||||
|                 enabled: !!field, |                 enabled: !!field, | ||||||
|                 handler: () => column.toggle() |                 handler: () => column.toggle() | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran