feat(collections/board): remove note from board

This commit is contained in:
Elian Doran
2025-09-12 22:25:33 +03:00
parent 3175b75192
commit 0dddcbcfa1
3 changed files with 17 additions and 5 deletions

View File

@@ -156,6 +156,12 @@ export default class BoardApi {
return server.put(`notes/${noteId}/title`, { title: newTitle.trim() });
}
removeFromBoard(noteId: string) {
const note = froca.getNoteFromCache(noteId);
if (!note) return;
return attributes.removeOwnedLabelByName(note, this.statusAttribute);
}
async moveWithinBoard(noteId: string, sourceBranchId: string, sourceIndex: number, targetIndex: number, sourceColumn: string, targetColumn: string) {
const targetItems = this.byColumn?.get(targetColumn) ?? [];