mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +01:00
feat(views/board): rename columns
This commit is contained in:
@@ -42,4 +42,11 @@ export default class BoardApi {
|
||||
}
|
||||
}
|
||||
|
||||
async renameColumn(oldValue: string, newValue: string, noteIds: string[]) {
|
||||
// Update all notes that have the old status value to the new value
|
||||
for (const noteId of noteIds) {
|
||||
await attributes.setLabel(noteId, "status", newValue);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user