Skip to content

Commit af2aab6

Browse files
authored
Always Show Embeddable Panel Header in Edit Mode (#79152) (#79191)
* Always show header in edit mode
1 parent 3c20100 commit af2aab6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/plugins/embeddable/public/lib/panel/panel_header/panel_header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export function PanelHeader({
137137
}: PanelHeaderProps) {
138138
const viewDescription = getViewDescription(embeddable);
139139
const showTitle = !hidePanelTitle && (!isViewMode || title || viewDescription !== '');
140-
const showPanelBar = badges.length > 0 || notifications.length > 0 || showTitle;
140+
const showPanelBar = !isViewMode || badges.length > 0 || notifications.length > 0 || showTitle;
141141
const classes = classNames('embPanel__header', {
142142
// eslint-disable-next-line @typescript-eslint/naming-convention
143143
'embPanel__header--floater': !showPanelBar,

test/functional/apps/dashboard/dashboard_options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default function ({ getService, getPageObjects }) {
4444
await PageObjects.dashboard.checkHideTitle();
4545
await retry.try(async () => {
4646
const titles = await PageObjects.dashboard.getPanelTitles();
47-
expect(titles[0]).to.eql(undefined);
47+
expect(titles[0]).to.eql('');
4848
});
4949
});
5050

0 commit comments

Comments
 (0)