fix(in-app-help): in-app help buttons not pointing to the right page

This commit is contained in:
Elian Doran
2025-03-19 17:53:31 +02:00
parent 28cb621bea
commit be5e2f529f
2 changed files with 41 additions and 4 deletions

View File

@@ -12,13 +12,13 @@ const TPL = `
</button>
`;
const byNoteType: Record<Exclude<NoteType, "book">, string | null> = {
export const byNoteType: Record<Exclude<NoteType, "book">, string | null> = {
canvas: null,
code: null,
contentWidget: null,
doc: null,
file: null,
geoMap: "foPEtsL51pD2",
geoMap: "81SGnPGMk7Xc",
image: null,
launcher: null,
mermaid: null,
@@ -31,10 +31,10 @@ const byNoteType: Record<Exclude<NoteType, "book">, string | null> = {
webView: null
};
const byBookType: Record<ViewTypeOptions, string | null> = {
export const byBookType: Record<ViewTypeOptions, string | null> = {
list: null,
grid: null,
calendar: "fDGg7QcJg3Xm"
calendar: "xWbu3jpNWapp"
};
export default class ContextualHelpButton extends NoteContextAwareWidget {