mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	fix dialog opening
This commit is contained in:
		| @@ -129,10 +129,11 @@ $noteTabContainer.on("click", ".export-note-button", function () { | ||||
|         return; | ||||
|     } | ||||
|  | ||||
|     exportDialog.showDialog(treeService.getActiveNode(), 'single'); | ||||
|     import('./dialogs/export.js').then(d => d.showDialog(treeService.getActiveNode(), 'single')); | ||||
| }); | ||||
|  | ||||
| $noteTabContainer.on("click", ".import-files-button", () => importDialog.showDialog(treeService.getActiveNode())); | ||||
| $noteTabContainer.on("click", ".import-files-button", | ||||
|     () => import('./dialogs/import.js').then(d => d.showDialog(treeService.getActiveNode()))); | ||||
|  | ||||
| $noteTabContainer.on("click", ".print-note-button", async function () { | ||||
|     if ($(this).hasClass("disabled")) { | ||||
|   | ||||
| @@ -10,7 +10,7 @@ const $title = $("#note-revision-title"); | ||||
| let revisionItems = []; | ||||
| let note; | ||||
|  | ||||
| async function showCurrentNoteRevisions() { | ||||
| export async function showCurrentNoteRevisions() { | ||||
|     await showNoteRevisionsDialog(noteDetailService.getActiveNoteId()); | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -48,7 +48,7 @@ function registerEntrypoints() { | ||||
|             return; | ||||
|         } | ||||
|  | ||||
|         import(NOTE_REVISIONS).then(d => d.showDialog()); | ||||
|         import(NOTE_REVISIONS).then(d => d.showCurrentNoteRevisions()); | ||||
|     }); | ||||
|  | ||||
|     $noteTabContainer.on("click", ".show-source-button", function() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user