mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	
		
			
	
	
		
			29 lines
		
	
	
		
			793 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
		
		
			
		
	
	
			29 lines
		
	
	
		
			793 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
|  | import noteDetailService from '../services/note_detail.js'; | ||
|  | 
 | ||
|  | const $dialog = $("#note-info-dialog"); | ||
|  | const $noteId = $("#note-info-note-id"); | ||
|  | const $dateCreated = $("#note-info-date-created"); | ||
|  | const $dateModified = $("#note-info-date-modified"); | ||
|  | const $type = $("#note-info-type"); | ||
|  | const $mime = $("#note-info-mime"); | ||
|  | const $okButton = $("#note-info-ok-button"); | ||
|  | 
 | ||
|  | function showDialog() { | ||
|  |     glob.activeDialog = $dialog; | ||
|  | 
 | ||
|  |     $dialog.modal(); | ||
|  | 
 | ||
|  |     const currentNote = noteDetailService.getCurrentNote(); | ||
|  | 
 | ||
|  |     $noteId.text(currentNote.noteId); | ||
|  |     $dateCreated.text(currentNote.dateCreated); | ||
|  |     $dateModified.text(currentNote.dateModified); | ||
|  |     $type.text(currentNote.type); | ||
|  |     $mime.text(currentNote.mime); | ||
|  | } | ||
|  | 
 | ||
|  | $okButton.click(() => $dialog.modal('hide')); | ||
|  | 
 | ||
|  | export default { | ||
|  |     showDialog | ||
|  | }; |