mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	refactored TabContext => NoteContext
This commit is contained in:
		| @@ -27,7 +27,7 @@ let note; | ||||
| let noteRevisionId; | ||||
|  | ||||
| export async function showCurrentNoteRevisions() { | ||||
|     await showNoteRevisionsDialog(appContext.tabManager.getActiveTabNoteId()); | ||||
|     await showNoteRevisionsDialog(appContext.tabManager.getActiveContextNoteId()); | ||||
| } | ||||
|  | ||||
| export async function showNoteRevisionsDialog(noteId, noteRevisionId) { | ||||
| @@ -41,7 +41,7 @@ async function loadNoteRevisions(noteId, noteRevId) { | ||||
|     $content.empty(); | ||||
|     $titleButtons.empty(); | ||||
|  | ||||
|     note = appContext.tabManager.getActiveTabNote(); | ||||
|     note = appContext.tabManager.getActiveContextNote(); | ||||
|     revisionItems = await server.get(`notes/${noteId}/revisions`); | ||||
|  | ||||
|     for (const item of revisionItems) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user