From 0588c91d1d3029b8d22cbeca2168a360cbf1983e Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Tue, 10 Dec 2024 21:49:42 +0200 Subject: [PATCH] client: refactor --- src/public/app/services/tree.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/public/app/services/tree.js b/src/public/app/services/tree.js index e367c3586..e8423b391 100644 --- a/src/public/app/services/tree.js +++ b/src/public/app/services/tree.js @@ -273,12 +273,12 @@ async function getNoteTitleWithPathAsSuffix(notePath) { .append($('').text(title)); - $titleWithPath.append(formatPath(path)); + $titleWithPath.append(formatNotePath(path)); return $titleWithPath; } -function formatPath(path) { +function formatNotePath(path) { const $notePath = $(''); if (path.length > 0) { @@ -316,5 +316,6 @@ export default { getNoteTitle, getNotePathTitle, getNoteTitleWithPathAsSuffix, - isNotePathInHiddenSubtree + isNotePathInHiddenSubtree, + formatNotePath };