From 9c28ff8f84aebd5d8ea3ac4b078b6a404f544bc1 Mon Sep 17 00:00:00 2001 From: Johannes Schill Date: Tue, 6 Nov 2018 16:44:13 +0100 Subject: [PATCH] wip: panel-header: Remove custom menu items from panels completely --- .../app/features/dashboard/dashgrid/PanelChrome.tsx | 12 ++---------- .../dashgrid/PanelHeader/PanelHeaderMenu.tsx | 2 +- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/public/app/features/dashboard/dashgrid/PanelChrome.tsx b/public/app/features/dashboard/dashgrid/PanelChrome.tsx index 4a4669a3950..818dbb6d155 100644 --- a/public/app/features/dashboard/dashgrid/PanelChrome.tsx +++ b/public/app/features/dashboard/dashgrid/PanelChrome.tsx @@ -72,25 +72,17 @@ export class PanelChrome extends PureComponent { } 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 (
- +
{ {menu.map((menuItem, idx: number) => { return (