Hide no theme option when required (#17338)

This commit is contained in:
Paul Bottein 2023-07-18 16:08:04 +02:00 committed by GitHub
parent 11b2cf9e22
commit 38b68bffa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}>