mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	feat(views/board): display even if no children
This commit is contained in:
		| @@ -325,8 +325,9 @@ class NoteContext extends Component implements EventListener<"entitiesReloaded"> | |||||||
|             return false; |             return false; | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         // Some book types must always display a note list, even if no children. |         // Collections must always display a note list, even if no children. | ||||||
|         if (["calendar", "table", "geoMap"].includes(note.getLabelValue("viewType") ?? "")) { |         const viewType = note.getLabelValue("viewType") ?? "grid"; | ||||||
|  |         if (!["list", "grid"].includes(viewType)) { | ||||||
|             return true; |             return true; | ||||||
|         } |         } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -45,12 +45,11 @@ export default class BookTypeWidget extends TypeWidget { | |||||||
|         } |         } | ||||||
|  |  | ||||||
|         switch (this.note?.getAttributeValue("label", "viewType")) { |         switch (this.note?.getAttributeValue("label", "viewType")) { | ||||||
|             case "calendar": |             case "list": | ||||||
|             case "table": |             case "grid": | ||||||
|             case "geoMap": |  | ||||||
|                 return false; |  | ||||||
|             default: |  | ||||||
|                 return true; |                 return true; | ||||||
|  |             default: | ||||||
|  |                 return false; | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user