mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-25 13:57:21 +00:00
Ensure required translations are loaded in safe-mode (#10709)
This commit is contained in:
parent
e7fd75703f
commit
9361e4cf9c
@ -20,7 +20,7 @@ class ErrorLogCard extends LitElement {
|
||||
<ha-icon-button
|
||||
.path=${mdiRefresh}
|
||||
@click=${this._refreshErrorLog}
|
||||
.label=${this.hass!.localize("ui.common.refresh")}
|
||||
.label=${this.hass.localize("ui.common.refresh")}
|
||||
></ha-icon-button>
|
||||
<div class="card-content error-log">${this._errorHTML}</div>
|
||||
</ha-card>
|
||||
@ -38,6 +38,7 @@ class ErrorLogCard extends LitElement {
|
||||
super.firstUpdated(changedProps);
|
||||
|
||||
if (this.hass?.config.safe_mode) {
|
||||
this.hass.loadFragmentTranslation("config");
|
||||
this._refreshErrorLog();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user