Link to filtered logs (#11816)

This commit is contained in:
Bram Kragten 2022-02-23 23:14:16 +01:00 committed by GitHub
parent aa831a9adf
commit a43b3b64b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -213,11 +213,11 @@ export class HaIntegrationCard extends LitElement {
} else {
stateTextExtra = html`
<br />
<a href="/config/logs"
>${this.hass.localize(
<a href=${`/config/logs/?filter=${item.domain}`}>
${this.hass.localize(
"ui.panel.config.integrations.config_entry.check_the_logs"
)}</a
>
)}
</a>
`;
}
}

View File

@ -347,7 +347,7 @@ class ZWaveJSConfigDashboard extends LitElement {
} else {
stateTextExtra = html`
<br />
<a href="/config/logs"
<a href="/config/logs?filter=zwave_js"
>${this.hass.localize(
"ui.panel.config.integrations.config_entry.check_the_logs"
)}</a

View File

@ -22,7 +22,7 @@ export class HaConfigLogs extends LitElement {
@property() public route!: Route;
@state() private _filter = extractSearchParam("filter") ?? "";
@state() private _filter = extractSearchParam("filter") || "";
@query("system-log-card", true) private systemLog?: SystemLogCard;