mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Hide show all categories button is no categories (#20255)
This commit is contained in:
parent
8fbcbb0b68
commit
1300cffa3b
@ -78,13 +78,15 @@ export class HaFilterCategories extends SubscribeMixin(LitElement) {
|
|||||||
class="ha-scrollbar"
|
class="ha-scrollbar"
|
||||||
activatable
|
activatable
|
||||||
>
|
>
|
||||||
<ha-list-item
|
${this._categories.length > 0
|
||||||
.selected=${!this.value?.length}
|
? html`<ha-list-item
|
||||||
.activated=${!this.value?.length}
|
.selected=${!this.value?.length}
|
||||||
>${this.hass.localize(
|
.activated=${!this.value?.length}
|
||||||
"ui.panel.config.category.filter.show_all"
|
>${this.hass.localize(
|
||||||
)}</ha-list-item
|
"ui.panel.config.category.filter.show_all"
|
||||||
>
|
)}</ha-list-item
|
||||||
|
>`
|
||||||
|
: nothing}
|
||||||
${this._categories.map(
|
${this._categories.map(
|
||||||
(category) =>
|
(category) =>
|
||||||
html`<ha-list-item
|
html`<ha-list-item
|
||||||
|
Loading…
x
Reference in New Issue
Block a user