diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.json index f6f167996..db876bee0 100644 --- a/apps/client/src/translations/en/translation.json +++ b/apps/client/src/translations/en/translation.json @@ -2148,7 +2148,8 @@ "hoisted_badge": "Hoisted", "hoisted_badge_title": "Unhoist", "workspace_badge": "Workspace", - "scroll_to_top_title": "Jump to the beginning of the note" + "scroll_to_top_title": "Jump to the beginning of the note", + "create_new_note": "Create new child note" }, "breadcrumb_badges": { "read_only_explicit": "Read-only", diff --git a/apps/client/src/widgets/layout/Breadcrumb.tsx b/apps/client/src/widgets/layout/Breadcrumb.tsx index aa7e484dc..aeb0d8d23 100644 --- a/apps/client/src/widgets/layout/Breadcrumb.tsx +++ b/apps/client/src/widgets/layout/Breadcrumb.tsx @@ -23,7 +23,7 @@ import tree from "../../services/tree"; import ActionButton from "../react/ActionButton"; import { Badge } from "../react/Badge"; import Dropdown from "../react/Dropdown"; -import { FormListItem } from "../react/FormList"; +import { FormDropdownDivider, FormListItem } from "../react/FormList"; import { useActiveNoteContext, useChildNotes, useNote, useNoteColorClass, useNoteIcon, useNoteLabel, useNoteLabelBoolean, useNoteProperty, useStaticTooltip } from "../react/hooks"; import Icon from "../react/Icon"; import { NewNoteLink } from "../react/NoteLink"; @@ -208,6 +208,12 @@ function BreadcrumbSeparatorDropdownContent({ notePath, noteContext, activeNoteP ; })} + + + note_create.createNote(notePath, { activate: true })} + >{t("breadcrumb.create_new_note")} ); }