mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
server side encryption WIP
This commit is contained in:
@@ -209,8 +209,6 @@ const noteEditor = (function() {
|
||||
|
||||
encryptionPasswordEl.val('');
|
||||
|
||||
encryption.decryptNoteIfNecessary(currentNote);
|
||||
|
||||
noteTitleEl.val(currentNote.detail.note_title);
|
||||
|
||||
noteChangeDisabled = true;
|
||||
@@ -234,12 +232,6 @@ const noteEditor = (function() {
|
||||
async function loadNote(noteId) {
|
||||
const note = await $.get(baseApiUrl + 'notes/' + noteId);
|
||||
|
||||
if (note.detail.encryption > 0 && !encryption.isEncryptionAvailable()) {
|
||||
return;
|
||||
}
|
||||
|
||||
encryption.decryptNoteIfNecessary(note);
|
||||
|
||||
return note;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user