diff --git a/src/core_plugins/kibana/public/dashboard/panel/panel_options_menu.js b/src/core_plugins/kibana/public/dashboard/panel/panel_options_menu.js index 641f90bc36129..fed9fbcfd22eb 100644 --- a/src/core_plugins/kibana/public/dashboard/panel/panel_options_menu.js +++ b/src/core_plugins/kibana/public/dashboard/panel/panel_options_menu.js @@ -18,12 +18,30 @@ export class PanelOptionsMenu extends React.Component { closePopover = () => this.setState({ isPopoverOpen: false }); + onEditPanel = () => { + this.closePopover(); + this.props.onEditPanel(); + }; + + onDeletePanel = () => { + this.closePopover(); + + if (this.props.onDeletePanel) { + this.props.onDeletePanel(); + } + }; + + onToggleExpandPanel = () => { + this.closePopover(); + this.props.onToggleExpandPanel(); + }; + renderItems() { const items = [(