From daba190e743a08a30ec273c224d7e0c178a9b94d Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Sat, 20 Sep 2025 01:57:58 +0300 Subject: [PATCH] client/menus: rearrange "Insert note" submenu items --- apps/client/src/services/note_types.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/client/src/services/note_types.ts b/apps/client/src/services/note_types.ts index b8eeb90e1..a42631f9f 100644 --- a/apps/client/src/services/note_types.ts +++ b/apps/client/src/services/note_types.ts @@ -81,8 +81,8 @@ let rootCreationDate: Date | undefined; async function getNoteTypeItems(command?: TreeCommandNames) { const items: MenuItem[] = [ ...getBlankNoteTypes(command), - ...await getBuiltInTemplates(t("note_types.collections"), command, true), ...await getBuiltInTemplates(null, command, false), + ...await getBuiltInTemplates(t("note_types.collections"), command, true), ...await getUserTemplates(command) ]; @@ -121,7 +121,10 @@ async function getUserTemplates(command?: TreeCommandNames) { } const items: MenuItem[] = [ - SEPARATOR + { + title: t("note_type_chooser.templates"), + kind: "header" + } ]; for (const templateNote of templateNotes) {