mirror of
https://github.com/zadam/trilium.git
synced 2025-01-16 12:08:03 +08:00
fixes
This commit is contained in:
parent
135102d2b5
commit
0226b1e9a8
3 changed files with 6 additions and 2 deletions
|
@ -71,8 +71,11 @@ class NoteDetailCode {
|
||||||
|
|
||||||
show() {
|
show() {
|
||||||
this.$component.show();
|
this.$component.show();
|
||||||
|
|
||||||
|
if (this.codeEditor) { // show can be called before render
|
||||||
this.codeEditor.refresh();
|
this.codeEditor.refresh();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
getContent() {
|
getContent() {
|
||||||
return this.codeEditor.getValue();
|
return this.codeEditor.getValue();
|
||||||
|
|
|
@ -106,6 +106,7 @@ class Sidebar {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// update at once to reduce flickering
|
||||||
this.$widgetContainer.empty().append(...widgetsToAppend);
|
this.$widgetContainer.empty().append(...widgetsToAppend);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -426,7 +426,7 @@ class TabContext {
|
||||||
for (const parentNote of parents) {
|
for (const parentNote of parents) {
|
||||||
const parentNotePath = await treeService.getSomeNotePath(parentNote);
|
const parentNotePath = await treeService.getSomeNotePath(parentNote);
|
||||||
// this is to avoid having root notes leading '/'
|
// this is to avoid having root notes leading '/'
|
||||||
const notePath = parentNotePath ? (parentNotePath + '/' + this.noteId) : this.noteId;
|
const notePath = parentNotePath ? (parentNotePath + '/' + this.note.noteId) : this.note.noteId;
|
||||||
const isCurrent = activeNoteParentNoteId === parentNote.noteId;
|
const isCurrent = activeNoteParentNoteId === parentNote.noteId;
|
||||||
|
|
||||||
await this.addPath(notePath, isCurrent);
|
await this.addPath(notePath, isCurrent);
|
||||||
|
|
Loading…
Reference in a new issue