Commit 8ac47b4e by Mitsuhiro Tanda

fix dashboard/panel link in scripted dashboard

parent 5b0585ac
...@@ -114,7 +114,7 @@ function (angular, _) { ...@@ -114,7 +114,7 @@ function (angular, _) {
title: linkDef.title, title: linkDef.title,
icon: iconMap[linkDef.icon], icon: iconMap[linkDef.icon],
tooltip: linkDef.tooltip, tooltip: linkDef.tooltip,
target: linkDef.targetBlank ? "_blank" : "", target: linkDef.targetBlank ? "_blank" : "_self",
keepTime: linkDef.keepTime, keepTime: linkDef.keepTime,
includeVars: linkDef.includeVars, includeVars: linkDef.includeVars,
}]); }]);
......
...@@ -62,7 +62,7 @@ function (angular, kbn, _) { ...@@ -62,7 +62,7 @@ function (angular, kbn, _) {
this.getPanelLinkAnchorInfo = function(link) { this.getPanelLinkAnchorInfo = function(link) {
var info = {}; var info = {};
if (link.type === 'absolute') { if (link.type === 'absolute') {
info.target = link.targetBlank ? '_blank' : ''; info.target = link.targetBlank ? '_blank' : '_self';
info.href = templateSrv.replace(link.url || ''); info.href = templateSrv.replace(link.url || '');
info.title = templateSrv.replace(link.title || ''); info.title = templateSrv.replace(link.title || '');
info.href += '?'; info.href += '?';
......
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