mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Only show existing weekdays (#14219)
This commit is contained in:
parent
2ab5da6d84
commit
6326bb010f
@ -31,7 +31,12 @@ class FirstWeekdayRow extends LitElement {
|
|||||||
.value=${this.hass.locale.first_weekday}
|
.value=${this.hass.locale.first_weekday}
|
||||||
@selected=${this._handleFormatSelection}
|
@selected=${this._handleFormatSelection}
|
||||||
>
|
>
|
||||||
${Object.values(FirstWeekday).map((day) => {
|
${[
|
||||||
|
FirstWeekday.language,
|
||||||
|
FirstWeekday.monday,
|
||||||
|
FirstWeekday.saturday,
|
||||||
|
FirstWeekday.sunday,
|
||||||
|
].map((day) => {
|
||||||
const value = this.hass.localize(
|
const value = this.hass.localize(
|
||||||
`ui.panel.profile.first_weekday.values.${day}`
|
`ui.panel.profile.first_weekday.values.${day}`
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user