mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	redesign of search input. Saved search is now saved under active note and doesn't need page reload
This commit is contained in:
		| @@ -77,6 +77,18 @@ async function createNewNote(parentNoteId, noteData) { | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     if (!noteData.mime) { | ||||
|         if (noteData.type === 'text') { | ||||
|             noteData.mime = 'text/html'; | ||||
|         } | ||||
|         else if (noteData.type === 'code') { | ||||
|             noteData.mime = 'text/plain'; | ||||
|         } | ||||
|         else if (noteData.type === 'relation-map' || noteData.type === 'search') { | ||||
|             noteData.mime = 'application/json'; | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     noteData.type = noteData.type || parentNote.type; | ||||
|     noteData.mime = noteData.mime || parentNote.mime; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user