Skip to content

Commit fe124c5

Browse files
committed
featcomponent): Add ability to use either name or button text for external link text
ref: #42 nofusscomputing/centurion_erp#468
1 parent 297978a commit fe124c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/page/detail/Section.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ const Section = ({
104104
<Link to={nunjucks.renderString(external_link.display_name, context)} target="_blank">
105105
<Badge
106106
background = {external_link.colour ? external_link.colour : 'var(--contrasting-colour)'}
107-
message = {external_link.name}
107+
message = {external_link.button_text ? external_link.button_text : external_link.name}
108108
>
109109
<IconLoader name={'link'} fill="var(--background-colour-active)" height='15px' width='15px'/>
110110
</Badge>

0 commit comments

Comments
 (0)