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

View File

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