From 04b9752932185ff163bfab34569f60be9bf4de3c Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Tue, 9 Jan 2018 15:59:11 +0300 Subject: [PATCH] dashboard: fix opening links in new tab (#10465) --- public/app/features/dashlinks/module.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/public/app/features/dashlinks/module.ts b/public/app/features/dashlinks/module.ts index 033dc97a364..8fa110fe6b4 100644 --- a/public/app/features/dashlinks/module.ts +++ b/public/app/features/dashlinks/module.ts @@ -30,7 +30,9 @@ function dashLink($compile, linkSrv) { if (link.asDropdown) { template += ''; } @@ -84,6 +86,7 @@ export class DashLinksContainerCtrl { tags: linkDef.tags, keepTime: linkDef.keepTime, includeVars: linkDef.includeVars, + target: linkDef.targetBlank ? '_blank' : '_self', icon: 'fa fa-bars', asDropdown: true, }, @@ -128,6 +131,7 @@ export class DashLinksContainerCtrl { memo.push({ title: dash.title, url: 'dashboard/' + dash.uri, + target: link.target, icon: 'fa fa-th-large', keepTime: link.keepTime, includeVars: link.includeVars,