fix dashboard/panel link in scripted dashboard

This commit is contained in:
Mitsuhiro Tanda 2015-07-17 15:38:36 +09:00
parent 5b0585ac7f
commit 8ac47b4e24
2 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ function (angular, _) {
title: linkDef.title,
icon: iconMap[linkDef.icon],
tooltip: linkDef.tooltip,
target: linkDef.targetBlank ? "_blank" : "",
target: linkDef.targetBlank ? "_blank" : "_self",
keepTime: linkDef.keepTime,
includeVars: linkDef.includeVars,
}]);

View File

@ -62,7 +62,7 @@ function (angular, kbn, _) {
this.getPanelLinkAnchorInfo = function(link) {
var info = {};
if (link.type === 'absolute') {
info.target = link.targetBlank ? '_blank' : '';
info.target = link.targetBlank ? '_blank' : '_self';
info.href = templateSrv.replace(link.url || '');
info.title = templateSrv.replace(link.title || '');
info.href += '?';