mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
hoisting fixes
This commit is contained in:
parent
14f5b46ece
commit
35d5036aaa
@ -336,4 +336,8 @@ export default class TabManager extends Component {
|
|||||||
|
|
||||||
this.triggerCommand('openInWindow', {notePath});
|
this.triggerCommand('openInWindow', {notePath});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hoistedNoteChangedEvent() {
|
||||||
|
this.tabsUpdate.scheduleUpdate();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,8 +37,6 @@ async function resolveNotePathToSegments(notePath, logErrors = true) {
|
|||||||
path.push('root');
|
path.push('root');
|
||||||
}
|
}
|
||||||
|
|
||||||
const hoistedNoteId = hoistedNoteService.getHoistedNoteId();
|
|
||||||
|
|
||||||
const effectivePath = [];
|
const effectivePath = [];
|
||||||
let childNoteId = null;
|
let childNoteId = null;
|
||||||
let i = 0;
|
let i = 0;
|
||||||
@ -91,10 +89,6 @@ async function resolveNotePathToSegments(notePath, logErrors = true) {
|
|||||||
|
|
||||||
effectivePath.push(parentNoteId);
|
effectivePath.push(parentNoteId);
|
||||||
childNoteId = parentNoteId;
|
childNoteId = parentNoteId;
|
||||||
|
|
||||||
if (parentNoteId === hoistedNoteId) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return effectivePath.reverse();
|
return effectivePath.reverse();
|
||||||
|
@ -38,7 +38,7 @@ function getRecentNotes(activeNoteId) {
|
|||||||
const hoistedNoteId = cls.getHoistedNoteId();
|
const hoistedNoteId = cls.getHoistedNoteId();
|
||||||
if (hoistedNoteId !== 'root') {
|
if (hoistedNoteId !== 'root') {
|
||||||
extraCondition = `AND recent_notes.notePath LIKE ?`;
|
extraCondition = `AND recent_notes.notePath LIKE ?`;
|
||||||
params.push(hoistedNoteId + '%');
|
params.push('%' + hoistedNoteId + '%');
|
||||||
}
|
}
|
||||||
|
|
||||||
const recentNotes = repository.getEntities(`
|
const recentNotes = repository.getEntities(`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user