mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	fix for icon change when creating note / changing type/mime
This commit is contained in:
		| @@ -756,16 +756,6 @@ const noteTree = (function() { | ||||
|             is_protected: isProtected | ||||
|         }); | ||||
|  | ||||
|         const newNode = { | ||||
|             title: newNoteName, | ||||
|             note_id: result.note_id, | ||||
|             parent_note_id: parentNoteId, | ||||
|             refKey: result.note_id, | ||||
|             note_tree_id: result.note_tree_id, | ||||
|             is_protected: isProtected, | ||||
|             extraClasses: isProtected ? "protected" : "" | ||||
|         }; | ||||
|  | ||||
|         setParentChildRelation(result.note_tree_id, parentNoteId, result.note_id); | ||||
|  | ||||
|         notesTreeMap[result.note_tree_id] = result; | ||||
| @@ -774,6 +764,16 @@ const noteTree = (function() { | ||||
|  | ||||
|         noteEditor.newNoteCreated(); | ||||
|  | ||||
|         const newNode = { | ||||
|             title: newNoteName, | ||||
|             note_id: result.note_id, | ||||
|             parent_note_id: parentNoteId, | ||||
|             refKey: result.note_id, | ||||
|             note_tree_id: result.note_tree_id, | ||||
|             is_protected: isProtected, | ||||
|             extraClasses: getExtraClasses(result.note) | ||||
|         }; | ||||
|  | ||||
|         if (target === 'after') { | ||||
|             node.appendSibling(newNode).setActive(true); | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user