mirror of
https://github.com/zadam/trilium.git
synced 2025-10-26 07:46:30 +01:00
feat(views/geomap): add template
This commit is contained in:
@@ -380,7 +380,7 @@ function checkHiddenSubtreeRecursively(parentNoteId: string, item: HiddenSubtree
|
||||
type: attr.type,
|
||||
name: attr.name,
|
||||
value: attr.value,
|
||||
isInheritable: false
|
||||
isInheritable: attr.isInheritable
|
||||
}).save();
|
||||
} else if (attr.name === "docName" || (existingAttribute.noteId.startsWith("_help") && attr.name === "iconClass")) {
|
||||
if (existingAttribute.value !== attr.value) {
|
||||
|
||||
@@ -43,6 +43,33 @@ export default function buildHiddenSubtreeTemplates() {
|
||||
value: "table"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
id: "_template_geo_map",
|
||||
type: "book",
|
||||
title: "Geo Map",
|
||||
icon: "bx bx-map-alt",
|
||||
attributes: [
|
||||
{
|
||||
name: "template",
|
||||
type: "label"
|
||||
},
|
||||
{
|
||||
name: "viewType",
|
||||
type: "label",
|
||||
value: "geoMap"
|
||||
},
|
||||
{
|
||||
name: "hidePromotedAttributes",
|
||||
type: "label"
|
||||
},
|
||||
{
|
||||
name: "label:geolocation",
|
||||
type: "label",
|
||||
value: "promoted,alias=Geolocation,single,text",
|
||||
isInheritable: true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user