saving expanded status as label

This commit is contained in:
zadam
2020-10-23 00:11:44 +02:00
parent 4ce2eaa919
commit 55f04436c0
4 changed files with 33 additions and 3 deletions

View File

@@ -52,7 +52,7 @@ function updateNoteAttribute(req) {
attribute.type = body.type;
}
if (body.value.trim()) {
if (attribute.type === 'label' || body.value.trim()) {
attribute.value = body.value;
}
else {
@@ -62,6 +62,8 @@ function updateNoteAttribute(req) {
attribute.save();
console.log("Saving", attribute);
return {
attributeId: attribute.attributeId
};