mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	fix merge problems
This commit is contained in:
		| @@ -559,6 +559,27 @@ export default class NoteTreeWidget extends TabAwareWidget { | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     updateNode(node) { | ||||
|         const note = treeCache.getNoteFromCache(node.data.noteId); | ||||
|         const branch = treeCache.getBranch(node.data.branchId); | ||||
|  | ||||
|         const isFolder = this.isFolder(note); | ||||
|         const title = (branch.prefix ? (branch.prefix + " - ") : "") + note.title; | ||||
|  | ||||
|         node.data.isProtected = note.isProtected; | ||||
|         node.data.noteType = note.type; | ||||
|         node.folder = isFolder; | ||||
|         node.icon = this.getIcon(note, isFolder); | ||||
|         node.extraClasses = this.getExtraClasses(note); | ||||
|         node.title = utils.escapeHtml(title); | ||||
|  | ||||
|         if (node.isExpanded() !== branch.isExpanded) { | ||||
|             node.setExpanded(branch.isExpanded, {noEvents: true}); | ||||
|         } | ||||
|  | ||||
|         node.renderTitle(); | ||||
|     } | ||||
|  | ||||
|     async prepareNode(branch) { | ||||
|         const note = await branch.getNote(); | ||||
|  | ||||
| @@ -861,27 +882,6 @@ export default class NoteTreeWidget extends TabAwareWidget { | ||||
|         return this.getNodeFromPath(notePath, true, logErrors); | ||||
|     } | ||||
|  | ||||
|     updateNode(node) { | ||||
|         const note = treeCache.getNoteFromCache(node.data.noteId); | ||||
|         const branch = treeCache.getBranch(node.data.branchId); | ||||
|  | ||||
|         const isFolder = this.isFolder(note); | ||||
|         const title = (branch.prefix ? (branch.prefix + " - ") : "") + note.title; | ||||
|  | ||||
|         node.data.isProtected = note.isProtected; | ||||
|         node.data.noteType = note.type; | ||||
|         node.folder = isFolder; | ||||
|         node.icon = this.getIcon(note, isFolder); | ||||
|         node.extraClasses = this.getExtraClasses(note); | ||||
|         node.title = utils.escapeHtml(title); | ||||
|  | ||||
|         if (node.isExpanded() !== branch.isExpanded) { | ||||
|             node.setExpanded(branch.isExpanded, {noEvents: true}); | ||||
|         } | ||||
|  | ||||
|         node.renderTitle(); | ||||
|     } | ||||
|  | ||||
|     /** @return {FancytreeNode[]} */ | ||||
|     getNodesByBranchId(branchId) { | ||||
|         utils.assertArguments(branchId); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user