Skip to content

Build your personal knowledge base with Trilium Notes

client/menus: rearrange "Insert note" submenu items

Adorian Dorandaba190e743a
diff --git a/apps/client/src/services/note_types.ts b/apps/client/src/services/note_types.ts
index b8eeb90e10..a42631f9f3 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<TreeCommandNames>[] = [
...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<TreeCommandNames>[] = [
- SEPARATOR
+ {
+ title: t("note_type_chooser.templates"),
+ kind: "header"
+ }
];
for (const templateNote of templateNotes) {