mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46:42 +00:00
Fixed comments
This commit is contained in:
parent
f7ae5b91bf
commit
0afc7c184f
@ -42,7 +42,11 @@ class HaLogbook extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected updated(_changedProps: PropertyValues) {
|
protected updated(_changedProps: PropertyValues) {
|
||||||
this._rtl = computeRTL(this.hass);
|
const oldHass = _changedProps.get("hass") as HomeAssistant | undefined;
|
||||||
|
|
||||||
|
if (oldHass === undefined || oldHass.language !== this.hass.language) {
|
||||||
|
this._rtl = computeRTL(this.hass);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected render(): TemplateResult {
|
protected render(): TemplateResult {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user