mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 09:58:32 +02:00
allow sender to save labels
This commit is contained in:
parent
bf9bfe920a
commit
b990239219
@ -35,6 +35,12 @@ function saveNote(req) {
|
||||
mime: 'text/html'
|
||||
});
|
||||
|
||||
if (req.body.labels) {
|
||||
for (const {name, value} of req.body.labels) {
|
||||
note.setLabel(name, value);
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
noteId: note.noteId,
|
||||
branchId: branch.branchId
|
||||
|
Loading…
x
Reference in New Issue
Block a user