fixes in the handling of cssClass and iconClass when working with newly created / single note

This commit is contained in:
zadam
2019-11-16 11:23:28 +01:00
parent c5e040c4a4
commit 35e9df6170
4 changed files with 87 additions and 80 deletions

View File

@@ -22,7 +22,7 @@ async function getNote(req) {
}
}
note.cssClass = (await note.getLabels("cssClass")).map(label => label.value).join(" ");
await treeService.setCssClassesToNotes([note]);
return note;
}
@@ -58,7 +58,7 @@ async function createNote(req) {
const { note, branch } = await noteService.createNewNote(parentNoteId, newNote, req);
note.cssClass = (await note.getLabels("cssClass")).map(label => label.value).join(" ");
await treeService.setCssClassesToNotes([note]);
return {
note,