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
client: refactor
Adorian Doran0588c91d1d30
diff --git a/src/public/app/services/tree.js b/src/public/app/services/tree.jsindex e367c3586f..e8423b3918 100644--- a/src/public/app/services/tree.js+++ b/src/public/app/services/tree.js@@ -273,12 +273,12 @@ async function getNoteTitleWithPathAsSuffix(notePath) {.append($('<span class="note-title">').text(title));- $titleWithPath.append(formatPath(path));+ $titleWithPath.append(formatNotePath(path));return $titleWithPath;}-function formatPath(path) {+function formatNotePath(path) {const $notePath = $('<span class="note-path">');if (path.length > 0) {@@ -316,5 +316,6 @@ export default {getNoteTitle,getNotePathTitle,getNoteTitleWithPathAsSuffix,- isNotePathInHiddenSubtree+ isNotePathInHiddenSubtree,+ formatNotePath};