mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 07:45:51 +01:00
feat(collections/board): add option to archive note
This commit is contained in:
@@ -259,6 +259,8 @@ export default class FNote {
|
||||
async getSubtreeNoteIds() {
|
||||
let noteIds: (string | string[])[] = [];
|
||||
for (const child of await this.getChildNotes()) {
|
||||
if (child.isArchived) continue;
|
||||
|
||||
noteIds.push(child.noteId);
|
||||
noteIds.push(await child.getSubtreeNoteIds());
|
||||
}
|
||||
@@ -267,7 +269,7 @@ export default class FNote {
|
||||
|
||||
async getSubtreeNotes() {
|
||||
const noteIds = await this.getSubtreeNoteIds();
|
||||
return this.froca.getNotes(noteIds);
|
||||
return (await this.froca.getNotes(noteIds)).filter(note => !note.isArchived)
|
||||
}
|
||||
|
||||
async getChildNotes() {
|
||||
|
||||
Reference in New Issue
Block a user