Skip to content

Build your personal knowledge base with Trilium Notes

feat(board/promoted_attributes): format URL

Elian Doran6b74b227cb8e
diff --git a/apps/client/src/widgets/attribute_widgets/PromotedAttributesDisplay.tsx b/apps/client/src/widgets/attribute_widgets/PromotedAttributesDisplay.tsx
index 7552c35206..e2451a4cd7 100644
--- a/apps/client/src/widgets/attribute_widgets/PromotedAttributesDisplay.tsx
+++ b/apps/client/src/widgets/attribute_widgets/PromotedAttributesDisplay.tsx
@@ -72,6 +72,8 @@ function formatLabelValue(attr: AttributeWithDefinitions): ComponentChildren {
}
case "boolean":
return <><Icon icon={value === "true" ? "bx bx-check-square" : "bx bx-square"} /> <strong>{attr.friendlyName}</strong></>;
+ case "url":
+ return <><a href={value} target="_blank" rel="noopener noreferrer">{attr.friendlyName}</a></>;
case "text":
default:
return <><strong>{attr.friendlyName}:</strong> {value}</>;