diff --git a/apps/client/src/widgets/FloatingButtonsDefinitions.tsx b/apps/client/src/widgets/FloatingButtonsDefinitions.tsx index ecd7c9b920..bd7372d66b 100644 --- a/apps/client/src/widgets/FloatingButtonsDefinitions.tsx +++ b/apps/client/src/widgets/FloatingButtonsDefinitions.tsx @@ -182,7 +182,7 @@ function RunActiveNoteButton({ note }: FloatingButtonContext) { } function OpenTriliumApiDocsButton({ note }: FloatingButtonContext) { - const isEnabled = note.mime.startsWith("application/javascript;env="); + const isEnabled = !isNewLayout && note.mime.startsWith("application/javascript;env="); return isEnabled && + @@ -195,3 +200,12 @@ function SaveToNoteButton({ note }: NoteActionsCustomInnerProps) { onClick={buildSaveSqlToNoteHandler(note)} />; } + +function OpenTriliumApiDocsButton({ note }: NoteActionsCustomInnerProps) { + const isEnabled = note.mime.startsWith("application/javascript;env="); + return isEnabled && openInAppHelpFromUrl(note.mime.endsWith("frontend") ? "Q2z6av6JZVWm" : "MEtfsqa5VwNi")} + />; +}