Skip to content

Commit

Permalink
fix: Bring back support for name:false
Browse files Browse the repository at this point in the history
Fixes #227
  • Loading branch information
nervetattoo committed Apr 5, 2021
1 parent e0f461c commit f39a56d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/header.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ export default function renderHeader({
icon = icon?.[action] ?? false
}

const name = header?.name ?? false

return html`
<header>
<div
Expand All @@ -35,7 +37,7 @@ export default function renderHeader({
${(icon &&
html` <ha-icon class="header__icon" .icon=${icon}></ha-icon> `) ||
''}
<h2 class="header__title">${header?.name}</h2>
${name ? html`<h2 class="header__title">${name}</h2>` : nothing}
</div>
${renderFaults({ faults: header.faults, openEntityPopover })}
${header.toggle
Expand Down

0 comments on commit f39a56d

Please sign in to comment.