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
9c28ff8f
Commit
9c28ff8f
authored
Nov 06, 2018
by
Johannes Schill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wip: panel-header: Remove custom menu items from panels completely
parent
dd7437e9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
11 deletions
+3
-11
public/app/features/dashboard/dashgrid/PanelChrome.tsx
+2
-10
public/app/features/dashboard/dashgrid/PanelHeader/PanelHeaderMenu.tsx
+1
-1
No files found.
public/app/features/dashboard/dashgrid/PanelChrome.tsx
View file @
9c28ff8f
...
...
@@ -72,25 +72,17 @@ export class PanelChrome extends PureComponent<Props, State> {
}
render
()
{
const
{
panel
,
dashboard
,
getMenuAdditional
}
=
this
.
props
;
const
{
panel
,
dashboard
}
=
this
.
props
;
const
{
refreshCounter
,
timeRange
,
renderCounter
}
=
this
.
state
;
const
{
datasource
,
targets
}
=
panel
;
const
PanelComponent
=
this
.
props
.
component
;
const
panelSpecificMenuOptions
=
getMenuAdditional
(
panel
);
const
additionalMenuItems
=
panelSpecificMenuOptions
.
additionalMenuItems
||
undefined
;
const
additionalSubMenuItems
=
panelSpecificMenuOptions
.
additionalSubMenuItems
||
undefined
;
console
.
log
(
'panelChrome render'
);
return
(
<
div
className=
"panel-container"
>
<
PanelHeader
title=
{
panel
.
title
}
>
<
PanelHeaderMenu
panel=
{
panel
}
dashboard=
{
dashboard
}
additionalMenuItems=
{
additionalMenuItems
}
additionalSubMenuItems=
{
additionalSubMenuItems
}
/>
<
PanelHeaderMenu
panel=
{
panel
}
dashboard=
{
dashboard
}
/>
</
PanelHeader
>
<
div
className=
"panel-content"
>
<
DataPanel
...
...
public/app/features/dashboard/dashgrid/PanelHeader/PanelHeaderMenu.tsx
View file @
9c28ff8f
...
...
@@ -19,7 +19,7 @@ export class PanelHeaderMenu extends PureComponent<PanelHeaderMenuProps, any> {
{
menu
.
map
((
menuItem
,
idx
:
number
)
=>
{
return
(
<
PanelHeaderMenuItem
key=
{
idx
}
// TODO: Fix proper key
key=
{
`${menuItem.text}${idx}`
}
type=
{
menuItem
.
type
}
text=
{
menuItem
.
text
}
iconClassName=
{
menuItem
.
iconClassName
}
...
...
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