mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 15:19:01 +02:00
client/menus: rearrange "Insert note" submenu items
This commit is contained in:
parent
8877eded9b
commit
daba190e74
@ -81,8 +81,8 @@ let rootCreationDate: Date | undefined;
|
|||||||
async function getNoteTypeItems(command?: TreeCommandNames) {
|
async function getNoteTypeItems(command?: TreeCommandNames) {
|
||||||
const items: MenuItem<TreeCommandNames>[] = [
|
const items: MenuItem<TreeCommandNames>[] = [
|
||||||
...getBlankNoteTypes(command),
|
...getBlankNoteTypes(command),
|
||||||
...await getBuiltInTemplates(t("note_types.collections"), command, true),
|
|
||||||
...await getBuiltInTemplates(null, command, false),
|
...await getBuiltInTemplates(null, command, false),
|
||||||
|
...await getBuiltInTemplates(t("note_types.collections"), command, true),
|
||||||
...await getUserTemplates(command)
|
...await getUserTemplates(command)
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -121,7 +121,10 @@ async function getUserTemplates(command?: TreeCommandNames) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const items: MenuItem<TreeCommandNames>[] = [
|
const items: MenuItem<TreeCommandNames>[] = [
|
||||||
SEPARATOR
|
{
|
||||||
|
title: t("note_type_chooser.templates"),
|
||||||
|
kind: "header"
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
for (const templateNote of templateNotes) {
|
for (const templateNote of templateNotes) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user