mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	feat(in-app-help): disable adding child notes
This commit is contained in:
		| @@ -550,7 +550,12 @@ export default class NoteTreeWidget extends NoteContextAwareWidget { | ||||
|                     $span.append($refreshSearchButton); | ||||
|                 } | ||||
|  | ||||
|                 if (!["search", "launcher"].includes(note.type) && !note.isOptions() && !note.isLaunchBarConfig()) { | ||||
|                 // TODO: Deduplicate with server's notes.ts#getAndValidateParent | ||||
|                 if (!["search", "launcher"].includes(note.type) | ||||
|                         && !note.isOptions() | ||||
|                         && !note.isLaunchBarConfig() | ||||
|                         && !note.noteId.startsWith("_help") | ||||
|                     ) { | ||||
|                     const $createChildNoteButton = $(`<span class="tree-item-button add-note-button bx bx-plus" title="${t("note_tree.create-child-note")}"></span>`).on( | ||||
|                         "click", | ||||
|                         cancelClickPropagation | ||||
|   | ||||
		Reference in New Issue
	
	Block a user