mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 15:26:36 +00:00
Hide no theme option when required (#17338)
This commit is contained in:
parent
11b2cf9e22
commit
38b68bffa6
@ -42,9 +42,13 @@ export class HaThemePicker extends LitElement {
|
|||||||
fixedMenuPosition
|
fixedMenuPosition
|
||||||
naturalMenuWidth
|
naturalMenuWidth
|
||||||
>
|
>
|
||||||
|
${!this.required
|
||||||
|
? html`
|
||||||
<mwc-list-item value="remove">
|
<mwc-list-item value="remove">
|
||||||
${this.hass!.localize("ui.components.theme-picker.no_theme")}
|
${this.hass!.localize("ui.components.theme-picker.no_theme")}
|
||||||
</mwc-list-item>
|
</mwc-list-item>
|
||||||
|
`
|
||||||
|
: nothing}
|
||||||
${this.includeDefault
|
${this.includeDefault
|
||||||
? html`
|
? html`
|
||||||
<mwc-list-item .value=${DEFAULT_THEME}>
|
<mwc-list-item .value=${DEFAULT_THEME}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user