mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
fixed background of protected notes
This commit is contained in:
@@ -80,12 +80,12 @@ const noteEditor = (function() {
|
||||
|
||||
function setNoteBackgroundIfProtected(note) {
|
||||
if (note.detail.is_protected) {
|
||||
$("#note-detail").addClass("protected");
|
||||
$("#note-detail-wrapper").addClass("protected");
|
||||
protectButton.hide();
|
||||
unprotectButton.show();
|
||||
}
|
||||
else {
|
||||
$("#note-detail").removeClass("protected");
|
||||
$("#note-detail-wrapper").removeClass("protected");
|
||||
protectButton.show();
|
||||
unprotectButton.hide();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user