mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
fix toggling protected flag and display of the title
This commit is contained in:
@@ -1084,7 +1084,7 @@ class Note extends AbstractEntity {
|
||||
}
|
||||
|
||||
getPojo() {
|
||||
const pojo = {
|
||||
return {
|
||||
noteId: this.noteId,
|
||||
title: this.title,
|
||||
isProtected: this.isProtected,
|
||||
@@ -1096,6 +1096,10 @@ class Note extends AbstractEntity {
|
||||
utcDateCreated: this.utcDateCreated,
|
||||
utcDateModified: this.utcDateModified
|
||||
};
|
||||
}
|
||||
|
||||
getPojoToSave() {
|
||||
const pojo = this.getPojo();
|
||||
|
||||
if (pojo.isProtected) {
|
||||
if (this.isDecrypted) {
|
||||
|
||||
Reference in New Issue
Block a user