mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 07:08:55 +02:00
feat(views/geomap): display even if empty
This commit is contained in:
parent
7abb67e737
commit
54063b97ad
@ -326,7 +326,7 @@ class NoteContext extends Component implements EventListener<"entitiesReloaded">
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Some book types must always display a note list, even if no children.
|
// Some book types must always display a note list, even if no children.
|
||||||
if (["calendar", "table"].includes(note.getLabelValue("viewType") ?? "")) {
|
if (["calendar", "table", "geoMap"].includes(note.getLabelValue("viewType") ?? "")) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -47,6 +47,7 @@ export default class BookTypeWidget extends TypeWidget {
|
|||||||
switch (this.note?.getAttributeValue("label", "viewType")) {
|
switch (this.note?.getAttributeValue("label", "viewType")) {
|
||||||
case "calendar":
|
case "calendar":
|
||||||
case "table":
|
case "table":
|
||||||
|
case "geoMap":
|
||||||
return false;
|
return false;
|
||||||
default:
|
default:
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user