mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-11 02:42:27 +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));
|
.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
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user