mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	feat(collections): display grid/view in collections list
This commit is contained in:
		@@ -27,6 +27,48 @@ export default function buildHiddenSubtreeTemplates() {
 | 
				
			|||||||
                    }
 | 
					                    }
 | 
				
			||||||
                ]
 | 
					                ]
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                id: "_template_list_view",
 | 
				
			||||||
 | 
					                type: "book",
 | 
				
			||||||
 | 
					                title: "List View",
 | 
				
			||||||
 | 
					                icon: "bx bx-list-ul",
 | 
				
			||||||
 | 
					                attributes: [
 | 
				
			||||||
 | 
					                    {
 | 
				
			||||||
 | 
					                        name: "template",
 | 
				
			||||||
 | 
					                        type: "label"
 | 
				
			||||||
 | 
					                    },
 | 
				
			||||||
 | 
					                    {
 | 
				
			||||||
 | 
					                        name: "collection",
 | 
				
			||||||
 | 
					                        type: "label"
 | 
				
			||||||
 | 
					                    },
 | 
				
			||||||
 | 
					                    {
 | 
				
			||||||
 | 
					                        name: "viewType",
 | 
				
			||||||
 | 
					                        type: "label",
 | 
				
			||||||
 | 
					                        value: "list"
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
 | 
					                ]
 | 
				
			||||||
 | 
					            },
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                id: "_template_grid_view",
 | 
				
			||||||
 | 
					                type: "book",
 | 
				
			||||||
 | 
					                title: "Grid View",
 | 
				
			||||||
 | 
					                icon: "bx bxs-grid",
 | 
				
			||||||
 | 
					                attributes: [
 | 
				
			||||||
 | 
					                    {
 | 
				
			||||||
 | 
					                        name: "template",
 | 
				
			||||||
 | 
					                        type: "label"
 | 
				
			||||||
 | 
					                    },
 | 
				
			||||||
 | 
					                    {
 | 
				
			||||||
 | 
					                        name: "collection",
 | 
				
			||||||
 | 
					                        type: "label"
 | 
				
			||||||
 | 
					                    },
 | 
				
			||||||
 | 
					                    {
 | 
				
			||||||
 | 
					                        name: "viewType",
 | 
				
			||||||
 | 
					                        type: "label",
 | 
				
			||||||
 | 
					                        value: "grid"
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
 | 
					                ]
 | 
				
			||||||
 | 
					            },
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                id: "_template_calendar",
 | 
					                id: "_template_calendar",
 | 
				
			||||||
                type: "book",
 | 
					                type: "book",
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user