Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
making dialogs wider to accompany deeper hierarchies. Recent changes now display full path of the note
azivner4a4228cd0355
diff --git a/src/templates/app.html b/src/templates/app.htmlindex a6a2e567ae..ed3bdf2c2c 100644--- a/src/templates/app.html+++ b/src/templates/app.html@@ -91,7 +91,7 @@</div><div id="recent-notes-dialog" title="Recent notes" style="display: none;">- <select id="recent-notes-select-box" size="15" style="width: 100%">+ <select id="recent-notes-select-box" size="20" style="width: 100%"></select><br/><br/>diff --git a/static/js/jump_to_note.js b/static/js/jump_to_note.jsindex 7ae8d92a04..59e2dc8e63 100644--- a/static/js/jump_to_note.js+++ b/static/js/jump_to_note.js@@ -3,7 +3,7 @@ function showJumpToNote() {$("#jump-to-note-dialog").dialog({modal: true,- width: 500+ width: 800});$("#jump-to-note-autocomplete").autocomplete({diff --git a/static/js/recent_changes.js b/static/js/recent_changes.jsindex cfef4c7f97..b1552598f0 100644--- a/static/js/recent_changes.js+++ b/static/js/recent_changes.js@@ -1,7 +1,7 @@function showRecentChanges() {$("#recent-changes-dialog").dialog({modal: true,- width: 400,+ width: 800,height: 700});@@ -13,13 +13,11 @@ function showRecentChanges() {const dayCache = {};for (const row of result) {- if (row.encryption > 0) {- if (isEncryptionAvailable()) {- row.note_title = decryptString(row.note_title);- }- else {- row.note_title = "[encrypted]";- }+ if (row.encryption > 0 && !isEncryptionAvailable()) {+ row.note_title = "[encrypted]";+ }+ else {+ row.note_title = getFullName(row.note_id);}diff --git a/static/js/recent_notes.js b/static/js/recent_notes.jsindex c1862675cf..7506c2d85e 100644--- a/static/js/recent_notes.js+++ b/static/js/recent_notes.js@@ -17,7 +17,7 @@ function showRecentNotes() {$("#recent-notes-dialog").dialog({modal: true,- width: 500+ width: 800});let recentNotesSelectBox = $('#recent-notes-select-box');diff --git a/static/js/tree_utils.js b/static/js/tree_utils.jsindex a8af4d0c4c..2b419125f9 100644--- a/static/js/tree_utils.js+++ b/static/js/tree_utils.js@@ -28,6 +28,10 @@ function getNoteTitle(noteId) {function getFullName(noteId) {let note = getNodeByKey(noteId);+ if (note === null) {+ return "[unknown]";+ }+if (note.data.is_clone || (note.data.encryption > 0 && !isEncryptionAvailable())) {return null;}