Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
8dbc75ce
Unverified
Commit
8dbc75ce
authored
Aug 14, 2018
by
Marcus Efraimsson
Committed by
GitHub
Aug 14, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12844 from grafana/10705_dash_links
Use uid when linking to dashboards internally in a dashboard
parents
0fa47c5e
e97251fe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
public/app/features/dashlinks/module.ts
+2
-2
public/app/features/panellinks/link_srv.ts
+4
-0
public/app/features/panellinks/module.ts
+6
-1
No files found.
public/app/features/dashlinks/module.ts
View file @
8dbc75ce
...
...
@@ -144,8 +144,8 @@ export class DashLinksContainerCtrl {
if
(
dash
.
id
!==
currentDashId
)
{
memo
.
push
({
title
:
dash
.
title
,
url
:
'dashboard/'
+
dash
.
uri
,
target
:
link
.
target
,
url
:
dash
.
url
,
target
:
link
.
target
===
'_self'
?
''
:
link
.
target
,
icon
:
'fa fa-th-large'
,
keepTime
:
link
.
keepTime
,
includeVars
:
link
.
includeVars
,
...
...
public/app/features/panellinks/link_srv.ts
View file @
8dbc75ce
...
...
@@ -77,6 +77,10 @@ export class LinkSrv {
info
.
target
=
link
.
targetBlank
?
'_blank'
:
'_self'
;
info
.
href
=
this
.
templateSrv
.
replace
(
link
.
url
||
''
,
scopedVars
);
info
.
title
=
this
.
templateSrv
.
replace
(
link
.
title
||
''
,
scopedVars
);
}
else
if
(
link
.
url
)
{
info
.
href
=
link
.
url
;
info
.
title
=
this
.
templateSrv
.
replace
(
link
.
title
||
''
,
scopedVars
);
info
.
target
=
link
.
targetBlank
?
'_blank'
:
''
;
}
else
if
(
link
.
dashUri
)
{
info
.
href
=
'dashboard/'
+
link
.
dashUri
+
'?'
;
info
.
title
=
this
.
templateSrv
.
replace
(
link
.
title
||
''
,
scopedVars
);
...
...
public/app/features/panellinks/module.ts
View file @
8dbc75ce
...
...
@@ -39,7 +39,12 @@ export class PanelLinksEditorCtrl {
backendSrv
.
search
({
query
:
link
.
dashboard
}).
then
(
function
(
hits
)
{
var
dashboard
=
_
.
find
(
hits
,
{
title
:
link
.
dashboard
});
if
(
dashboard
)
{
link
.
dashUri
=
dashboard
.
uri
;
if
(
dashboard
.
url
)
{
link
.
url
=
dashboard
.
url
;
}
else
{
// To support legacy url's
link
.
dashUri
=
dashboard
.
uri
;
}
link
.
title
=
dashboard
.
title
;
}
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment