mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 01:06:35 +00:00
Hide devices without subentry box when not needed
This commit is contained in:
parent
df2523a6a2
commit
a6452bbf35
@ -405,8 +405,13 @@ class HaConfigEntryRow extends LitElement {
|
||||
</ha-md-list-item>
|
||||
${this._expanded
|
||||
? subEntries.length
|
||||
? html`<ha-md-list class="devices">
|
||||
<ha-md-list-item @click=${this._toggleOwnDevices} type="button">
|
||||
? html` ${ownDevices.length
|
||||
? html`
|
||||
<ha-md-list class="devices">
|
||||
<ha-md-list-item
|
||||
@click=${this._toggleOwnDevices}
|
||||
type="button"
|
||||
>
|
||||
<ha-icon-button
|
||||
class="expand-button"
|
||||
.path=${this._devicesExpanded
|
||||
@ -432,6 +437,8 @@ class HaConfigEntryRow extends LitElement {
|
||||
)
|
||||
: nothing}
|
||||
</ha-md-list>
|
||||
`
|
||||
: nothing}
|
||||
${subEntries.map(
|
||||
(subEntry) => html`
|
||||
<ha-config-sub-entry-row
|
||||
|
Loading…
x
Reference in New Issue
Block a user