Skip to content

Build your personal knowledge base with Trilium Notes

feat(in-app-help): display day notes help for #calendarRoot

Elian Doran575201fbe865
diff --git a/src/public/app/widgets/floating_buttons/help_button.ts b/src/public/app/widgets/floating_buttons/help_button.ts
index b14bfb7b7a..fc4d7adffc 100644
--- a/src/public/app/widgets/floating_buttons/help_button.ts
+++ b/src/public/app/widgets/floating_buttons/help_button.ts
@@ -54,6 +54,8 @@ export default class ContextualHelpButton extends NoteContextAwareWidget {
static #getUrlToOpen(note: FNote | null | undefined) {
if (note && note.type !== "book" && byNoteType[note.type]) {
return byNoteType[note.type];
+ } else if (note?.hasLabel("calendarRoot")) {
+ return "l0tKav7yLHGF";
} else if (note && note.type === "book") {
return byBookType[note.getAttributeValue("label", "viewType") as ViewTypeOptions ?? ""]
}