mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	Merge branch 'stable'
# Conflicts: # package-lock.json # package.json # src/public/javascripts/services/note_detail_file.js # src/services/build.js
This commit is contained in:
		@@ -34,6 +34,9 @@ async function show() {
 | 
			
		||||
    else {
 | 
			
		||||
        $previewRow.hide();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // open doesn't work for protected notes since it works through browser which isn't in protected session
 | 
			
		||||
    $openButton.toggle(!currentNote.isProtected);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
$downloadButton.click(() => utils.download(getFileUrl()));
 | 
			
		||||
@@ -51,7 +54,7 @@ $openButton.click(() => {
 | 
			
		||||
 | 
			
		||||
function getFileUrl() {
 | 
			
		||||
    // electron needs absolute URL so we extract current host, port, protocol
 | 
			
		||||
    return utils.getHost() + "/api/notes/" + noteDetailService.getActiveNoteId();
 | 
			
		||||
    return utils.getHost() + "/api/notes/" + noteDetailService.getActiveNoteId() + "/download";
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user