Skip to content

Commit

Permalink
revert panel changes
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 committed Nov 14, 2019
1 parent 47b971b commit 923bba2
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions src/plugins/embeddable/public/lib/panel/embeddable_panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ interface Props {
notifications: CoreStart['notifications'];
inspector: InspectorStartContract;
SavedObjectFinder: React.ComponentType<any>;
hideHeader: boolean;
}

interface State {
Expand Down Expand Up @@ -165,18 +164,16 @@ export class EmbeddablePanel extends React.Component<Props, State> {
role="figure"
aria-labelledby={headerId}
>
{!this.props.hideHeader && (
<PanelHeader
getActionContextMenuPanel={this.getActionContextMenuPanel}
hidePanelTitles={this.state.hidePanelTitles}
isViewMode={viewOnlyMode}
closeContextMenu={this.state.closeContextMenu}
title={title}
badges={this.state.badges}
embeddable={this.props.embeddable}
headerId={headerId}
/>
)}
<PanelHeader
getActionContextMenuPanel={this.getActionContextMenuPanel}
hidePanelTitles={this.state.hidePanelTitles}
isViewMode={viewOnlyMode}
closeContextMenu={this.state.closeContextMenu}
title={title}
badges={this.state.badges}
embeddable={this.props.embeddable}
headerId={headerId}
/>
<div className="embPanel__content" ref={this.embeddableRoot} />
</EuiPanel>
);
Expand Down

0 comments on commit 923bba2

Please sign in to comment.