feat(board/promoted_attributes): format URL

This commit is contained in:
Elian Doran 2025-11-12 20:50:01 +02:00
parent 00874840b7
commit 6b74b227cb
No known key found for this signature in database

View File

@ -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}</>;