mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 23:29:02 +02:00
feat(collections): hide book default note type
This commit is contained in:
parent
1a72eb91ee
commit
5a2da62992
@ -89,8 +89,10 @@ async function getNoteTypeItems(command?: TreeCommandNames) {
|
|||||||
return items;
|
return items;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getBlankNoteTypes(command): MenuItem<TreeCommandNames>[] {
|
function getBlankNoteTypes(command?: TreeCommandNames): MenuItem<TreeCommandNames>[] {
|
||||||
return NOTE_TYPES.filter((nt) => !nt.reserved).map((nt) => {
|
return NOTE_TYPES
|
||||||
|
.filter((nt) => !nt.reserved && nt.type !== "book")
|
||||||
|
.map((nt) => {
|
||||||
const menuItem: MenuCommandItem<TreeCommandNames> = {
|
const menuItem: MenuCommandItem<TreeCommandNames> = {
|
||||||
title: nt.title,
|
title: nt.title,
|
||||||
command,
|
command,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user