mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 07:01:31 +08:00 
			
		
		
		
	added noteId to file view
This commit is contained in:
		
							parent
							
								
									ba1ca506af
								
							
						
					
					
						commit
						90895f1288
					
				@ -5,6 +5,7 @@ import noteDetailService from "./note_detail.js";
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
const $component = $('#note-detail-file');
 | 
					const $component = $('#note-detail-file');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const $fileNoteId = $("#file-note-id");
 | 
				
			||||||
const $fileName = $("#file-filename");
 | 
					const $fileName = $("#file-filename");
 | 
				
			||||||
const $fileType = $("#file-filetype");
 | 
					const $fileType = $("#file-filetype");
 | 
				
			||||||
const $fileSize = $("#file-filesize");
 | 
					const $fileSize = $("#file-filesize");
 | 
				
			||||||
@ -21,6 +22,7 @@ async function show() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    $component.show();
 | 
					    $component.show();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    $fileNoteId.text(currentNote.noteId);
 | 
				
			||||||
    $fileName.text(attributeMap.originalFileName || "?");
 | 
					    $fileName.text(attributeMap.originalFileName || "?");
 | 
				
			||||||
    $fileSize.text((attributeMap.fileSize || "?") + " bytes");
 | 
					    $fileSize.text((attributeMap.fileSize || "?") + " bytes");
 | 
				
			||||||
    $fileType.text(currentNote.mime);
 | 
					    $fileType.text(currentNote.mime);
 | 
				
			||||||
 | 
				
			|||||||
@ -1,5 +1,9 @@
 | 
				
			|||||||
<div id="note-detail-file" class="note-detail-component">
 | 
					<div id="note-detail-file" class="note-detail-component">
 | 
				
			||||||
    <table id="file-table">
 | 
					    <table id="file-table">
 | 
				
			||||||
 | 
					        <tr>
 | 
				
			||||||
 | 
					            <th>Note ID:</th>
 | 
				
			||||||
 | 
					            <td id="file-note-id"></td>
 | 
				
			||||||
 | 
					        </tr>
 | 
				
			||||||
        <tr>
 | 
					        <tr>
 | 
				
			||||||
            <th>Original file name:</th>
 | 
					            <th>Original file name:</th>
 | 
				
			||||||
            <td id="file-filename"></td>
 | 
					            <td id="file-filename"></td>
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user