mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +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'
|
mime: 'text/html'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (req.body.labels) {
|
||||||
|
for (const {name, value} of req.body.labels) {
|
||||||
|
note.setLabel(name, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
noteId: note.noteId,
|
noteId: note.noteId,
|
||||||
branchId: branch.branchId
|
branchId: branch.branchId
|
||||||
|
Loading…
x
Reference in New Issue
Block a user