From 575201fbe86504001732e0fc6c4454120a628995 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 30 Mar 2025 22:04:16 +0300 Subject: [PATCH] feat(in-app-help): display day notes help for #calendarRoot --- src/public/app/widgets/floating_buttons/help_button.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/public/app/widgets/floating_buttons/help_button.ts b/src/public/app/widgets/floating_buttons/help_button.ts index b14bfb7b7..fc4d7adff 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 ?? ""] }