mirror of
https://github.com/zadam/trilium.git
synced 2025-11-05 05:59:00 +01:00
feat(book/table): support boolean type
This commit is contained in:
parent
b6398fdb5d
commit
fb32d26479
@ -92,8 +92,12 @@ export function buildRowDefinitions(notes: FNote[], infos: PromotedAttributeInfo
|
|||||||
title: note.title
|
title: note.title
|
||||||
};
|
};
|
||||||
|
|
||||||
for (const info of infos) {
|
for (const { name, type } of infos) {
|
||||||
data[info.name] = note.getLabelValue(info.name);
|
if (type === "boolean") {
|
||||||
|
data[name] = note.hasLabel(name);
|
||||||
|
} else {
|
||||||
|
data[name] = note.getLabelValue(name);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
definitions.push(data);
|
definitions.push(data);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user