mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	fix merge problems
This commit is contained in:
		| @@ -42,7 +42,7 @@ | |||||||
|     "express-session": "1.17.1", |     "express-session": "1.17.1", | ||||||
|     "file-type": "14.6.2", |     "file-type": "14.6.2", | ||||||
|     "fs-extra": "9.0.1", |     "fs-extra": "9.0.1", | ||||||
|     "helmet": "3.23.1", |     "helmet": "3.23.2", | ||||||
|     "html": "1.0.0", |     "html": "1.0.0", | ||||||
|     "html2plaintext": "2.1.2", |     "html2plaintext": "2.1.2", | ||||||
|     "http-proxy-agent": "4.0.1", |     "http-proxy-agent": "4.0.1", | ||||||
|   | |||||||
| @@ -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) { |     async prepareNode(branch) { | ||||||
|         const note = await branch.getNote(); |         const note = await branch.getNote(); | ||||||
|  |  | ||||||
| @@ -861,27 +882,6 @@ export default class NoteTreeWidget extends TabAwareWidget { | |||||||
|         return this.getNodeFromPath(notePath, true, logErrors); |         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[]} */ |     /** @return {FancytreeNode[]} */ | ||||||
|     getNodesByBranchId(branchId) { |     getNodesByBranchId(branchId) { | ||||||
|         utils.assertArguments(branchId); |         utils.assertArguments(branchId); | ||||||
|   | |||||||
| @@ -171,7 +171,7 @@ function changeTitle(req) { | |||||||
|     note.save(); |     note.save(); | ||||||
|  |  | ||||||
|     if (noteTitleChanged) { |     if (noteTitleChanged) { | ||||||
|         await noteService.triggerNoteTitleChanged(note); |         noteService.triggerNoteTitleChanged(note); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     return note; |     return note; | ||||||
|   | |||||||
| @@ -69,7 +69,7 @@ eventService.subscribe(eventService.ENTITY_CREATED, ({ entityName, entity }) => | |||||||
|             note.setContent(targetNote.getContent()); |             note.setContent(targetNote.getContent()); | ||||||
|         } |         } | ||||||
|         else if (entity.type === 'label' && entity.name === 'sorted') { |         else if (entity.type === 'label' && entity.name === 'sorted') { | ||||||
|             await treeService.sortNotesAlphabetically(entity.noteId); |             treeService.sortNotesAlphabetically(entity.noteId); | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|     else if (entityName === 'notes') { |     else if (entityName === 'notes') { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user