mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46:42 +00:00
Only show own devices when there are devices... (#25920)
only show own devices when there are devices...
This commit is contained in:
parent
df2523a6a2
commit
eb9359e9e1
@ -405,8 +405,12 @@ class HaConfigEntryRow extends LitElement {
|
|||||||
</ha-md-list-item>
|
</ha-md-list-item>
|
||||||
${this._expanded
|
${this._expanded
|
||||||
? subEntries.length
|
? subEntries.length
|
||||||
|
? html`${ownDevices.length
|
||||||
? html`<ha-md-list class="devices">
|
? html`<ha-md-list class="devices">
|
||||||
<ha-md-list-item @click=${this._toggleOwnDevices} type="button">
|
<ha-md-list-item
|
||||||
|
@click=${this._toggleOwnDevices}
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
<ha-icon-button
|
<ha-icon-button
|
||||||
class="expand-button"
|
class="expand-button"
|
||||||
.path=${this._devicesExpanded
|
.path=${this._devicesExpanded
|
||||||
@ -431,7 +435,8 @@ class HaConfigEntryRow extends LitElement {
|
|||||||
></ha-config-entry-device-row>`
|
></ha-config-entry-device-row>`
|
||||||
)
|
)
|
||||||
: nothing}
|
: nothing}
|
||||||
</ha-md-list>
|
</ha-md-list>`
|
||||||
|
: nothing}
|
||||||
${subEntries.map(
|
${subEntries.map(
|
||||||
(subEntry) => html`
|
(subEntry) => html`
|
||||||
<ha-config-sub-entry-row
|
<ha-config-sub-entry-row
|
||||||
|
@ -541,8 +541,9 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) {
|
|||||||
<ha-button
|
<ha-button
|
||||||
slot="action"
|
slot="action"
|
||||||
@click=${this._handleDisableDebugLogging}
|
@click=${this._handleDisableDebugLogging}
|
||||||
>${this.hass.localize("ui.common.disable")}</ha-button
|
|
||||||
>
|
>
|
||||||
|
${this.hass.localize("ui.common.disable")}
|
||||||
|
</ha-button>
|
||||||
</ha-alert>
|
</ha-alert>
|
||||||
</div>`
|
</div>`
|
||||||
: nothing}
|
: nothing}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user