mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-29 12:16:39 +00:00
Optimized RTL check
This commit is contained in:
parent
d5a947e2cc
commit
c6624e5cb6
@ -44,11 +44,6 @@ export class HaDateRangePicker extends LitElement {
|
|||||||
const oldHass = changedProps.get("hass") as HomeAssistant | undefined;
|
const oldHass = changedProps.get("hass") as HomeAssistant | undefined;
|
||||||
if (!oldHass || oldHass.language !== this.hass.language) {
|
if (!oldHass || oldHass.language !== this.hass.language) {
|
||||||
this._hour24format = this._compute24hourFormat();
|
this._hour24format = this._compute24hourFormat();
|
||||||
}
|
|
||||||
if (
|
|
||||||
!oldHass ||
|
|
||||||
computeRTLDirection(oldHass) !== computeRTLDirection(this.hass)
|
|
||||||
) {
|
|
||||||
this._rtlDirection = computeRTLDirection(this.hass);
|
this._rtlDirection = computeRTLDirection(this.hass);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user