mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix prefix when renaming note
This commit is contained in:
parent
160c1c455c
commit
37a105db4d
@ -143,6 +143,7 @@ const noteTree = (function() {
|
|||||||
note_pid: noteTree.note_pid,
|
note_pid: noteTree.note_pid,
|
||||||
note_tree_id: noteTree.note_tree_id,
|
note_tree_id: noteTree.note_tree_id,
|
||||||
is_protected: noteTree.is_protected,
|
is_protected: noteTree.is_protected,
|
||||||
|
prefix: noteTree.prefix,
|
||||||
title: (noteTree.prefix ? (noteTree.prefix + " - ") : "") + noteIdToTitle[noteTree.note_id],
|
title: (noteTree.prefix ? (noteTree.prefix + " - ") : "") + noteIdToTitle[noteTree.note_id],
|
||||||
extraClasses: getExtraClasses(noteTree),
|
extraClasses: getExtraClasses(noteTree),
|
||||||
refKey: noteTree.note_id,
|
refKey: noteTree.note_id,
|
||||||
@ -544,7 +545,11 @@ const noteTree = (function() {
|
|||||||
if (currentNoteId) {
|
if (currentNoteId) {
|
||||||
noteIdToTitle[currentNoteId] = title;
|
noteIdToTitle[currentNoteId] = title;
|
||||||
|
|
||||||
getCurrentClones().map(clone => clone.setTitle(title));
|
getCurrentClones().map(clone => {
|
||||||
|
const fullTitle = (clone.data.prefix ? (clone.data.prefix + " - ") : "") + title;
|
||||||
|
|
||||||
|
clone.setTitle(fullTitle)
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user