mirror of
https://github.com/zadam/trilium.git
synced 2025-11-13 09:59:02 +01:00
feat(board/promoted_attributes): format URL
This commit is contained in:
parent
00874840b7
commit
6b74b227cb
@ -72,6 +72,8 @@ function formatLabelValue(attr: AttributeWithDefinitions): ComponentChildren {
|
|||||||
}
|
}
|
||||||
case "boolean":
|
case "boolean":
|
||||||
return <><Icon icon={value === "true" ? "bx bx-check-square" : "bx bx-square"} /> <strong>{attr.friendlyName}</strong></>;
|
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":
|
case "text":
|
||||||
default:
|
default:
|
||||||
return <><strong>{attr.friendlyName}:</strong> {value}</>;
|
return <><strong>{attr.friendlyName}:</strong> {value}</>;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user