small tweaks

This commit is contained in:
zadam 2020-09-13 00:19:50 +02:00
parent 0ca0996751
commit 37602cfcae
3 changed files with 4 additions and 2 deletions

View File

@ -33,6 +33,7 @@ class NoteRevision extends Entity {
constructor(row) { constructor(row) {
super(row); super(row);
this.isErased = !!this.isErased;
this.isProtected = !!this.isProtected; this.isProtected = !!this.isProtected;
if (this.isProtected) { if (this.isProtected) {

View File

@ -86,8 +86,9 @@ function downloadNoteRevision(req, res) {
function eraseOneNoteRevision(noteRevision) { function eraseOneNoteRevision(noteRevision) {
noteRevision.isErased = true; noteRevision.isErased = true;
noteRevision.title = null; noteRevision.title = null;
noteRevision.setContent(null);
noteRevision.save(); noteRevision.save();
noteRevision.setContent(null);
} }
function eraseAllNoteRevisions(req) { function eraseAllNoteRevisions(req) {

View File

@ -364,7 +364,7 @@ const DEFAULT_KEYBOARD_ACTIONS = [
}, },
{ {
actionName: "findInText", actionName: "findInText",
defaultShortcuts: ["CommandOrControl+F"], defaultShortcuts: isElectron ? ["CommandOrControl+F"] : [],
scope: "window" scope: "window"
}, },
{ {