mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
DashboardLinks: Fixes another issue where dashboard links cause full page reload (#31334)
This commit is contained in:
parent
0a4c3b8779
commit
2b7628c69e
@ -40,7 +40,7 @@ export const DashboardLinksDashboard: React.FC<Props> = (props) => {
|
||||
<li key={`dashlinks-dropdown-item-${resolvedLink.id}-${index}`}>
|
||||
<a
|
||||
href={resolvedLink.url}
|
||||
target={link.targetBlank ? '_blank' : '_self'}
|
||||
target={link.targetBlank ? '_blank' : undefined}
|
||||
aria-label={selectors.components.DashboardLinks.link}
|
||||
>
|
||||
{resolvedLink.title}
|
||||
@ -67,7 +67,7 @@ export const DashboardLinksDashboard: React.FC<Props> = (props) => {
|
||||
<a
|
||||
className="gf-form-label gf-form-label--dashlink"
|
||||
href={resolvedLink.url}
|
||||
target={link.targetBlank ? '_blank' : '_self'}
|
||||
target={link.targetBlank ? '_blank' : undefined}
|
||||
aria-label={selectors.components.DashboardLinks.link}
|
||||
>
|
||||
<Icon name="apps" style={{ marginRight: '4px' }} />
|
||||
|
Loading…
Reference in New Issue
Block a user