From 983d9c4319e4f1f467ba51f59df1c8e69aed6855 Mon Sep 17 00:00:00 2001 From: zadam Date: Mon, 22 Apr 2019 17:05:04 +0200 Subject: [PATCH] fix merge issue --- src/public/javascripts/services/note_detail_file.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/public/javascripts/services/note_detail_file.js b/src/public/javascripts/services/note_detail_file.js index aee9de21b..c32c63e03 100644 --- a/src/public/javascripts/services/note_detail_file.js +++ b/src/public/javascripts/services/note_detail_file.js @@ -36,7 +36,7 @@ async function show() { } // open doesn't work for protected notes since it works through browser which isn't in protected session - $openButton.toggle(!currentNote.isProtected); + $openButton.toggle(!activeNote.isProtected); } $downloadButton.click(() => utils.download(getFileUrl()));