feat(help): display contextual button text snippets

This commit is contained in:
Elian Doran 2025-06-18 15:35:56 +03:00
parent 578310a1c0
commit 7faaefee20
No known key found for this signature in database

View File

@ -56,6 +56,8 @@ export default class ContextualHelpButton extends NoteContextAwareWidget {
return byNoteType[note.type]; return byNoteType[note.type];
} else if (note?.hasLabel("calendarRoot")) { } else if (note?.hasLabel("calendarRoot")) {
return "l0tKav7yLHGF"; return "l0tKav7yLHGF";
} else if (note?.hasLabel("textSnippet")) {
return "pwc194wlRzcH";
} else if (note && note.type === "book") { } else if (note && note.type === "book") {
return byBookType[note.getAttributeValue("label", "viewType") as ViewTypeOptions ?? ""] return byBookType[note.getAttributeValue("label", "viewType") as ViewTypeOptions ?? ""]
} }