mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	renamed subtree operations in context menu from "branch" to "subtree"
This commit is contained in:
		| @@ -193,14 +193,14 @@ async function saveNoteRevision(note) { | ||||
|  | ||||
|     const revisionCutoff = dateUtils.dateStr(new Date(now.getTime() - noteRevisionSnapshotTimeInterval * 1000)); | ||||
|  | ||||
|     const existingnoteRevisionId = await sql.getValue( | ||||
|     const existingNoteRevisionId = await sql.getValue( | ||||
|         "SELECT noteRevisionId FROM note_revisions WHERE noteId = ? AND dateModifiedTo >= ?", [note.noteId, revisionCutoff]); | ||||
|  | ||||
|     const msSinceDateCreated = now.getTime() - dateUtils.parseDateTime(note.dateCreated).getTime(); | ||||
|  | ||||
|     if (note.type !== 'file' | ||||
|         && !await note.hasLabel('disableVersioning') | ||||
|         && !existingnoteRevisionId | ||||
|         && !existingNoteRevisionId | ||||
|         && msSinceDateCreated >= noteRevisionSnapshotTimeInterval * 1000) { | ||||
|  | ||||
|         await new NoteRevision({ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user