From d5bf543990c469a889e26ec378e3f1bba4e8b0cf Mon Sep 17 00:00:00 2001 From: Mo Bitar Date: Fri, 14 Dec 2018 01:24:00 -0600 Subject: [PATCH] Dont display previews for protected notes --- app/assets/templates/notes.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/templates/notes.html.haml b/app/assets/templates/notes.html.haml index 1053c5038..d43a50974 100644 --- a/app/assets/templates/notes.html.haml +++ b/app/assets/templates/notes.html.haml @@ -68,7 +68,7 @@ %i.icon.ion-eye-disabled {{note.title}} - .note-preview{"ng-if" => "!ctrl.hideNotePreview && !note.content.hidePreview && !note.locked"} + .note-preview{"ng-if" => "!ctrl.hideNotePreview && !note.content.hidePreview && !note.content.protected"} .html-preview{"ng-if" => "note.content.preview_html", "ng-bind-html" => "note.content.preview_html"} .plain-preview{"ng-if" => "!note.content.preview_html && note.content.preview_plain"} {{note.content.preview_plain}} .default-preview{"ng-if" => "!note.content.preview_html && !note.content.preview_plain"} {{note.text}}