Make to full integration card header clickable (#16819)

This commit is contained in:
Paul Bottein 2023-06-08 10:42:26 +02:00 committed by GitHub
parent 0442e3e06e
commit 31e4166248
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,28 +65,28 @@ export class HaIntegrationCard extends LitElement {
"debug-logging": Boolean(debugLoggingEnabled), "debug-logging": Boolean(debugLoggingEnabled),
})} })}
> >
<ha-integration-header <a href=${`/config/integrations/integration/${this.domain}`}>
.hass=${this.hass} <ha-integration-header
.domain=${this.domain} .hass=${this.hass}
.localizedDomainName=${this.items[0].localized_domain_name} .domain=${this.domain}
.banner=${state !== "loaded" .localizedDomainName=${this.items[0].localized_domain_name}
? this.hass.localize( .banner=${state !== "loaded"
`ui.panel.config.integrations.config_entry.state.${state}` ? this.hass.localize(
) `ui.panel.config.integrations.config_entry.state.${state}`
: debugLoggingEnabled )
? this.hass.localize( : debugLoggingEnabled
"ui.panel.config.integrations.config_entry.debug_logging_enabled" ? this.hass.localize(
) "ui.panel.config.integrations.config_entry.debug_logging_enabled"
: undefined} )
.manifest=${this.manifest} : undefined}
> .manifest=${this.manifest}
<a
href=${`/config/integrations/integration/${this.domain}`}
slot="header-button"
> >
<ha-icon-button .path=${mdiCogOutline}></ha-icon-button> <ha-icon-button
</a> slot="header-button"
</ha-integration-header> .path=${mdiCogOutline}
></ha-icon-button>
</ha-integration-header>
</a>
${this._renderSingleEntry()} ${this._renderSingleEntry()}
</ha-card> </ha-card>