mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Always Show Embeddable Panel Header in Edit Mode (#79152)
* Always show header in edit mode
This commit is contained in:
parent
46084cbbe8
commit
e08f6a38f6
2 changed files with 2 additions and 2 deletions
|
@ -136,7 +136,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,
|
||||
|
|
|
@ -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('');
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue