mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-08 18:06:36 +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
|
<ha-icon-button
|
||||||
.path=${mdiRefresh}
|
.path=${mdiRefresh}
|
||||||
@click=${this._refreshErrorLog}
|
@click=${this._refreshErrorLog}
|
||||||
.label=${this.hass!.localize("ui.common.refresh")}
|
.label=${this.hass.localize("ui.common.refresh")}
|
||||||
></ha-icon-button>
|
></ha-icon-button>
|
||||||
<div class="card-content error-log">${this._errorHTML}</div>
|
<div class="card-content error-log">${this._errorHTML}</div>
|
||||||
</ha-card>
|
</ha-card>
|
||||||
@ -38,6 +38,7 @@ class ErrorLogCard extends LitElement {
|
|||||||
super.firstUpdated(changedProps);
|
super.firstUpdated(changedProps);
|
||||||
|
|
||||||
if (this.hass?.config.safe_mode) {
|
if (this.hass?.config.safe_mode) {
|
||||||
|
this.hass.loadFragmentTranslation("config");
|
||||||
this._refreshErrorLog();
|
this._refreshErrorLog();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user