mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
DataLinkButton: Remove icon for target _self (#75598)
This commit is contained in:
@@ -29,7 +29,12 @@ export function DataLinkButton({ link, buttonProps }: DataLinkButtonProps) {
|
||||
: undefined
|
||||
}
|
||||
>
|
||||
<Button icon="external-link-alt" variant="primary" size="sm" {...buttonProps}>
|
||||
<Button
|
||||
icon={link.target === '_blank' ? 'external-link-alt' : undefined}
|
||||
variant="primary"
|
||||
size="sm"
|
||||
{...buttonProps}
|
||||
>
|
||||
{link.title}
|
||||
</Button>
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user