Commit 2cbec532 by Marcus Efraimsson Committed by GitHub

Merge pull request #12345 from grafana/12315_dash_links

Fix dashboard drop down links
parents a795715d 4ef4a4d3
...@@ -48,9 +48,11 @@ function dashLink($compile, $sanitize, linkSrv) { ...@@ -48,9 +48,11 @@ function dashLink($compile, $sanitize, linkSrv) {
function update() { function update() {
var linkInfo = linkSrv.getAnchorInfo(link); var linkInfo = linkSrv.getAnchorInfo(link);
span.text(linkInfo.title); span.text(linkInfo.title);
anchor.attr('href', linkInfo.href); if (!link.asDropdown) {
sanitizeAnchor(); anchor.attr('href', linkInfo.href);
sanitizeAnchor();
}
elem.find('a').attr('data-placement', 'bottom');
// tooltip // tooltip
elem.find('a').tooltip({ elem.find('a').tooltip({
title: $sanitize(scope.link.tooltip), title: $sanitize(scope.link.tooltip),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment