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
ce3e34e9
Unverified
Commit
ce3e34e9
authored
Jan 15, 2021
by
Joan López de la Franca Beltran
Committed by
GitHub
Jan 15, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Plugins: Use the includes.path (if exists) on sidebar includes links (#30291)
parent
60828316
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
public/app/features/plugins/PluginPage.tsx
+2
-1
No files found.
public/app/features/plugins/PluginPage.tsx
View file @
ce3e34e9
...
@@ -212,8 +212,9 @@ class PluginPage extends PureComponent<Props, State> {
...
@@ -212,8 +212,9 @@ class PluginPage extends PureComponent<Props, State> {
if
(
item
.
type
===
PluginIncludeType
.
page
)
{
if
(
item
.
type
===
PluginIncludeType
.
page
)
{
const
pluginId
=
this
.
state
.
plugin
!
.
meta
.
id
;
const
pluginId
=
this
.
state
.
plugin
!
.
meta
.
id
;
const
page
=
item
.
name
.
toLowerCase
().
replace
(
' '
,
'-'
);
const
page
=
item
.
name
.
toLowerCase
().
replace
(
' '
,
'-'
);
const
url
=
item
.
path
??
`plugins/
${
pluginId
}
/page/
${
page
}
`
;
return
(
return
(
<
a
href=
{
`plugins/${pluginId}/page/${page}`
}
>
<
a
href=
{
url
}
>
<
i
className=
{
getPluginIcon
(
item
.
type
)
}
/>
<
i
className=
{
getPluginIcon
(
item
.
type
)
}
/>
{
item
.
name
}
{
item
.
name
}
</
a
>
</
a
>
...
...
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