mirror of
https://github.com/zadam/trilium.git
synced 2025-06-05 17:38:47 +02:00
small tweaks
This commit is contained in:
parent
0ca0996751
commit
37602cfcae
@ -33,6 +33,7 @@ class NoteRevision extends Entity {
|
||||
constructor(row) {
|
||||
super(row);
|
||||
|
||||
this.isErased = !!this.isErased;
|
||||
this.isProtected = !!this.isProtected;
|
||||
|
||||
if (this.isProtected) {
|
||||
|
@ -86,8 +86,9 @@ function downloadNoteRevision(req, res) {
|
||||
function eraseOneNoteRevision(noteRevision) {
|
||||
noteRevision.isErased = true;
|
||||
noteRevision.title = null;
|
||||
noteRevision.setContent(null);
|
||||
noteRevision.save();
|
||||
|
||||
noteRevision.setContent(null);
|
||||
}
|
||||
|
||||
function eraseAllNoteRevisions(req) {
|
||||
|
@ -364,7 +364,7 @@ const DEFAULT_KEYBOARD_ACTIONS = [
|
||||
},
|
||||
{
|
||||
actionName: "findInText",
|
||||
defaultShortcuts: ["CommandOrControl+F"],
|
||||
defaultShortcuts: isElectron ? ["CommandOrControl+F"] : [],
|
||||
scope: "window"
|
||||
},
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user