mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-18 23:06:40 +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
|
||||
naturalMenuWidth
|
||||
>
|
||||
<mwc-list-item value="remove">
|
||||
${this.hass!.localize("ui.components.theme-picker.no_theme")}
|
||||
</mwc-list-item>
|
||||
${!this.required
|
||||
? html`
|
||||
<mwc-list-item value="remove">
|
||||
${this.hass!.localize("ui.components.theme-picker.no_theme")}
|
||||
</mwc-list-item>
|
||||
`
|
||||
: nothing}
|
||||
${this.includeDefault
|
||||
? html`
|
||||
<mwc-list-item .value=${DEFAULT_THEME}>
|
||||
|
Loading…
x
Reference in New Issue
Block a user