Skip to content

Commit

Permalink
Always Show Embeddable Panel Header in Edit Mode (#79152) (#79191)
Browse files Browse the repository at this point in the history
* Always show header in edit mode
  • Loading branch information
ThomThomson authored Oct 1, 2020
1 parent 3c20100 commit af2aab6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export function PanelHeader({
}: PanelHeaderProps) {
const viewDescription = getViewDescription(embeddable);
const showTitle = !hidePanelTitle && (!isViewMode || title || viewDescription !== '');
const showPanelBar = badges.length > 0 || notifications.length > 0 || showTitle;
const showPanelBar = !isViewMode || badges.length > 0 || notifications.length > 0 || showTitle;
const classes = classNames('embPanel__header', {
// eslint-disable-next-line @typescript-eslint/naming-convention
'embPanel__header--floater': !showPanelBar,
Expand Down
2 changes: 1 addition & 1 deletion test/functional/apps/dashboard/dashboard_options.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default function ({ getService, getPageObjects }) {
await PageObjects.dashboard.checkHideTitle();
await retry.try(async () => {
const titles = await PageObjects.dashboard.getPanelTitles();
expect(titles[0]).to.eql(undefined);
expect(titles[0]).to.eql('');
});
});

Expand Down

0 comments on commit af2aab6

Please sign in to comment.