mirror of
https://github.com/home-assistant/frontend.git
synced 2026-04-07 03:14:00 +00:00
Fix refresh button appending logs instead of clearing them (#26875)
This commit is contained in:
@@ -243,7 +243,7 @@ class ErrorLogCard extends LitElement {
|
||||
${!streaming || this._error
|
||||
? html`<ha-icon-button
|
||||
.path=${mdiRefresh}
|
||||
@click=${this._loadLogs}
|
||||
@click=${this._handleRefresh}
|
||||
.label=${localize("ui.common.refresh")}
|
||||
></ha-icon-button>`
|
||||
: nothing}
|
||||
@@ -715,6 +715,10 @@ class ErrorLogCard extends LitElement {
|
||||
this._wrapLines = !this._wrapLines;
|
||||
}
|
||||
|
||||
private _handleRefresh() {
|
||||
this._loadLogs();
|
||||
}
|
||||
|
||||
private _handleOverflowAction(ev: CustomEvent<ActionDetail>) {
|
||||
let index = ev.detail.index;
|
||||
if (this.provider === "core") {
|
||||
|
||||
Reference in New Issue
Block a user