Merge pull request #2361 from mtanda/fix_link
Fix dashboard/panel link in Scripted Dashboard
This commit is contained in:
@@ -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, _) {
|
|||||||
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 += '?';
|
||||||
|
|||||||
Reference in New Issue
Block a user