mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 05:15:59 +01:00
saving expanded status as label
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user