Compare commits

...

2 Commits

Author SHA1 Message Date
copilot-swe-agent[bot]
1ab3b155d6 Add webui_ha_aware property to conditionally hide ingress header
Co-authored-by: balloob <1444314+balloob@users.noreply.github.com>
2025-10-13 13:22:19 +00:00
copilot-swe-agent[bot]
72fe6f1e94 Initial plan 2025-10-13 13:12:56 +00:00
2 changed files with 14 additions and 11 deletions

View File

@@ -83,17 +83,19 @@ class HassioIngressView extends LitElement {
</hass-subpage>`;
}
return html`${this.narrow || this.hass.dockedSidebar === "always_hidden"
? html`<div class="header">
<ha-icon-button
.label=${this.hass.localize("ui.sidebar.sidebar_toggle")}
.path=${mdiMenu}
@click=${this._toggleMenu}
></ha-icon-button>
<div class="main-title">${this._addon.name}</div>
</div>
${iframe}`
: iframe}`;
return html`${this._addon.webui_ha_aware
? iframe
: this.narrow || this.hass.dockedSidebar === "always_hidden"
? html`<div class="header">
<ha-icon-button
.label=${this.hass.localize("ui.sidebar.sidebar_toggle")}
.path=${mdiMenu}
@click=${this._toggleMenu}
></ha-icon-button>
<div class="main-title">${this._addon.name}</div>
</div>
${iframe}`
: iframe}`;
}
protected async firstUpdated(): Promise<void> {

View File

@@ -112,6 +112,7 @@ export interface HassioAddonDetails extends HassioAddonInfo {
translations: Record<string, AddonTranslations>;
watchdog: null | boolean;
webui: null | string;
webui_ha_aware: boolean;
}
export interface HassioAddonsInfo {