diff --git a/apps/client/src/widgets/FloatingButtonsDefinitions.tsx b/apps/client/src/widgets/FloatingButtonsDefinitions.tsx index 114b02ed3..141f17863 100644 --- a/apps/client/src/widgets/FloatingButtonsDefinitions.tsx +++ b/apps/client/src/widgets/FloatingButtonsDefinitions.tsx @@ -308,7 +308,7 @@ function ExportImageButtons({ note, triggerEvent, isDefaultViewMode }: FloatingB function InAppHelpButton({ note }: FloatingButtonContext) { const helpUrl = getHelpUrlForNote(note); - const isEnabled = !!helpUrl && (!isNewLayout || (note?.type !== "book")); + const isEnabled = !!helpUrl && !isNewLayout; return isEnabled && ( + ); @@ -223,6 +225,19 @@ function OpenTriliumApiDocsButton({ noteMime }: NoteActionsCustomInnerProps) { />; } +function InAppHelpButton({ note, noteType }: NoteActionsCustomInnerProps) { + const helpUrl = getHelpUrlForNote(note); + const isEnabled = !!helpUrl && (noteType !== "book"); + + return isEnabled && ( + helpUrl && openInAppHelpFromUrl(helpUrl)} + /> + ); +} + function AddChildButton({ parentComponent, noteType, viewType, ntxId, isReadOnly }: NoteActionsCustomInnerProps) { if (noteType === "book" && viewType === "geoMap") { return