client: refactor

This commit is contained in:
Adorian Doran 2024-12-10 21:49:42 +02:00
parent f2067d0b12
commit 0588c91d1d

View File

@ -273,12 +273,12 @@ async function getNoteTitleWithPathAsSuffix(notePath) {
.append($('<span class="note-title">').text(title)); .append($('<span class="note-title">').text(title));
$titleWithPath.append(formatPath(path)); $titleWithPath.append(formatNotePath(path));
return $titleWithPath; return $titleWithPath;
} }
function formatPath(path) { function formatNotePath(path) {
const $notePath = $('<span class="note-path">'); const $notePath = $('<span class="note-path">');
if (path.length > 0) { if (path.length > 0) {
@ -316,5 +316,6 @@ export default {
getNoteTitle, getNoteTitle,
getNotePathTitle, getNotePathTitle,
getNoteTitleWithPathAsSuffix, getNoteTitleWithPathAsSuffix,
isNotePathInHiddenSubtree isNotePathInHiddenSubtree,
formatNotePath
}; };