mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-09 17:52:32 +08:00
client: refactor
This commit is contained in:
parent
f2067d0b12
commit
0588c91d1d
@ -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
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user