mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-16 22:06:34 +00:00
Fix logs overflow when there are 0 boots (#22694)
This commit is contained in:
parent
04a45a4361
commit
ed3096157c
@ -242,19 +242,23 @@ class ErrorLogCard extends LitElement {
|
|||||||
.label=${this.hass.localize("ui.common.refresh")}
|
.label=${this.hass.localize("ui.common.refresh")}
|
||||||
></ha-icon-button>`
|
></ha-icon-button>`
|
||||||
: nothing}
|
: nothing}
|
||||||
<ha-button-menu @action=${this._handleOverflowAction}>
|
${this._streamSupported && Array.isArray(this._boots)
|
||||||
<ha-icon-button slot="trigger" .path=${mdiDotsVertical}>
|
? html`
|
||||||
</ha-icon-button>
|
<ha-button-menu @action=${this._handleOverflowAction}>
|
||||||
<ha-list-item graphic="icon">
|
<ha-icon-button slot="trigger" .path=${mdiDotsVertical}>
|
||||||
<ha-svg-icon
|
</ha-icon-button>
|
||||||
slot="graphic"
|
<ha-list-item graphic="icon">
|
||||||
.path=${mdiFormatListNumbered}
|
<ha-svg-icon
|
||||||
></ha-svg-icon>
|
slot="graphic"
|
||||||
${this.hass.localize(
|
.path=${mdiFormatListNumbered}
|
||||||
`ui.panel.config.logs.${this._showBootsSelect ? "hide" : "show"}_haos_boots`
|
></ha-svg-icon>
|
||||||
)}
|
${this.hass.localize(
|
||||||
</ha-list-item>
|
`ui.panel.config.logs.${this._showBootsSelect ? "hide" : "show"}_haos_boots`
|
||||||
</ha-button-menu>
|
)}
|
||||||
|
</ha-list-item>
|
||||||
|
</ha-button-menu>
|
||||||
|
`
|
||||||
|
: nothing}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-content error-log">
|
<div class="card-content error-log">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user