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
2f4744ca
Commit
2f4744ca
authored
Oct 26, 2017
by
Patrick O'Carroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
declared any to info in declaration
parent
2dd49e6e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
public/app/features/panellinks/linkSrv.ts
+14
-14
No files found.
public/app/features/panellinks/linkSrv.ts
View file @
2f4744ca
...
...
@@ -66,26 +66,26 @@ export class LinkSrv {
}
getAnchorInfo
(
link
)
{
var
info
=
{};
(
<
any
>
info
)
.
href
=
this
.
getLinkUrl
(
link
);
(
<
any
>
info
)
.
title
=
this
.
templateSrv
.
replace
(
link
.
title
||
''
);
var
info
:
any
=
{};
info
.
href
=
this
.
getLinkUrl
(
link
);
info
.
title
=
this
.
templateSrv
.
replace
(
link
.
title
||
''
);
return
info
;
}
getPanelLinkAnchorInfo
(
link
,
scopedVars
)
{
var
info
=
{};
var
info
:
any
=
{};
if
(
link
.
type
===
'absolute'
)
{
(
<
any
>
info
)
.
target
=
link
.
targetBlank
?
'_blank'
:
'_self'
;
(
<
any
>
info
)
.
href
=
this
.
templateSrv
.
replace
(
link
.
url
||
''
,
scopedVars
);
(
<
any
>
info
)
.
title
=
this
.
templateSrv
.
replace
(
link
.
title
||
''
,
scopedVars
);
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
.
dashUri
)
{
(
<
any
>
info
)
.
href
=
'dashboard/'
+
link
.
dashUri
+
'?'
;
(
<
any
>
info
)
.
title
=
this
.
templateSrv
.
replace
(
link
.
title
||
''
,
scopedVars
);
(
<
any
>
info
)
.
target
=
link
.
targetBlank
?
'_blank'
:
''
;
info
.
href
=
'dashboard/'
+
link
.
dashUri
+
'?'
;
info
.
title
=
this
.
templateSrv
.
replace
(
link
.
title
||
''
,
scopedVars
);
info
.
target
=
link
.
targetBlank
?
'_blank'
:
''
;
}
else
{
(
<
any
>
info
)
.
title
=
this
.
templateSrv
.
replace
(
link
.
title
||
''
,
scopedVars
);
info
.
title
=
this
.
templateSrv
.
replace
(
link
.
title
||
''
,
scopedVars
);
var
slug
=
kbn
.
slugifyForUrl
(
link
.
dashboard
||
''
);
(
<
any
>
info
)
.
href
=
'dashboard/db/'
+
slug
+
'?'
;
info
.
href
=
'dashboard/db/'
+
slug
+
'?'
;
}
var
params
=
{};
...
...
@@ -100,10 +100,10 @@ export class LinkSrv {
this
.
templateSrv
.
fillVariableValuesForUrl
(
params
,
scopedVars
);
}
(
<
any
>
info
).
href
=
this
.
addParamsToUrl
((
<
any
>
info
)
.
href
,
params
);
info
.
href
=
this
.
addParamsToUrl
(
info
.
href
,
params
);
if
(
link
.
params
)
{
(
<
any
>
info
).
href
=
this
.
appendToQueryString
((
<
any
>
info
)
.
href
,
this
.
templateSrv
.
replace
(
link
.
params
,
scopedVars
));
info
.
href
=
this
.
appendToQueryString
(
info
.
href
,
this
.
templateSrv
.
replace
(
link
.
params
,
scopedVars
));
}
return
info
;
...
...
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