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),
})}
>
<ha-integration-header
.hass=${this.hass}
.domain=${this.domain}
.localizedDomainName=${this.items[0].localized_domain_name}
.banner=${state !== "loaded"
? this.hass.localize(
`ui.panel.config.integrations.config_entry.state.${state}`
)
: debugLoggingEnabled
? this.hass.localize(
"ui.panel.config.integrations.config_entry.debug_logging_enabled"
)
: undefined}
.manifest=${this.manifest}
>
<a
href=${`/config/integrations/integration/${this.domain}`}
slot="header-button"
<a href=${`/config/integrations/integration/${this.domain}`}>
<ha-integration-header
.hass=${this.hass}
.domain=${this.domain}
.localizedDomainName=${this.items[0].localized_domain_name}
.banner=${state !== "loaded"
? this.hass.localize(
`ui.panel.config.integrations.config_entry.state.${state}`
)
: debugLoggingEnabled
? this.hass.localize(
"ui.panel.config.integrations.config_entry.debug_logging_enabled"
)
: undefined}
.manifest=${this.manifest}
>
<ha-icon-button .path=${mdiCogOutline}></ha-icon-button>
</a>
</ha-integration-header>
<ha-icon-button
slot="header-button"
.path=${mdiCogOutline}
></ha-icon-button>
</ha-integration-header>
</a>
${this._renderSingleEntry()}
</ha-card>