Fix Header Card

The header cards in the domain view did not initialize the buttons
correctly. They had the default icons and actions of the Header class
assigned to them instead of the ones from the specific view class.
This commit is contained in:
Ferry Cools
2025-06-03 20:47:44 +02:00
committed by GitHub
parent 4257a6cc68
commit 29f003fd09
2 changed files with 2 additions and 2 deletions

View File

@@ -33,8 +33,7 @@ Ready to transform your Home Assistant experience?
The **Mushroom Dashboard Strategy** is available through HACS (Home Assistant Community Store).
➡️ *
*[Explore the detailed documentation for Installation & Usage Guides!](https://digilive.github.io/mushroom-strategy/)**
➡️ **[Explore the detailed documentation for Installation & Usage Guides!](https://digilive.github.io/mushroom-strategy/)**
---

View File

@@ -151,6 +151,7 @@ abstract class AbstractView {
this.baseConfiguration = { ...this.baseConfiguration, ...viewConfiguration, ...customConfiguration };
this.baseConfiguration.headerCardConfiguration = {
...this.baseConfiguration.headerCardConfiguration,
showControls:
Registry.strategyOptions.domains[this.domain as Exclude<SupportedDomains, 'home'>]?.showControls ??
Registry.strategyOptions.domains['_'].showControls,