diff --git a/apps/client/src/widgets/ribbon/NoteActionsCustom.tsx b/apps/client/src/widgets/ribbon/NoteActionsCustom.tsx index f1b178daf..497e1ae14 100644 --- a/apps/client/src/widgets/ribbon/NoteActionsCustom.tsx +++ b/apps/client/src/widgets/ribbon/NoteActionsCustom.tsx @@ -54,6 +54,7 @@ export default function NoteActionsCustom(props: NoteActionsCustomProps) { return (innerProps &&
+ @@ -221,4 +222,13 @@ function OpenTriliumApiDocsButton({ noteMime }: NoteActionsCustomInnerProps) { onClick={() => openInAppHelpFromUrl(noteMime.endsWith("frontend") ? "Q2z6av6JZVWm" : "MEtfsqa5VwNi")} />; } + +function AddChildButton({ parentComponent, noteType, ntxId }: NoteActionsCustomInnerProps) { + const isEnabled = noteType === "relationMap"; + return isEnabled && parentComponent.triggerEvent("relationMapCreateChildNote", { ntxId })} + />; +} //#endregion