mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46:42 +00:00
Hide map cluster toggle when there is just one entry (#25454)
This commit is contained in:
parent
89e04fcc45
commit
e1b9b47ac7
@ -215,6 +215,8 @@ class HuiMapCard extends LitElement implements LovelaceCard {
|
|||||||
render-passive
|
render-passive
|
||||||
></ha-map>
|
></ha-map>
|
||||||
<div id="buttons">
|
<div id="buttons">
|
||||||
|
${this._mapEntities.length > 1
|
||||||
|
? html`
|
||||||
<ha-icon-button
|
<ha-icon-button
|
||||||
.label=${this.hass!.localize(
|
.label=${this.hass!.localize(
|
||||||
"ui.panel.lovelace.cards.map.toggle_grouping"
|
"ui.panel.lovelace.cards.map.toggle_grouping"
|
||||||
@ -226,6 +228,8 @@ class HuiMapCard extends LitElement implements LovelaceCard {
|
|||||||
@click=${this._toggleClusterMarkers}
|
@click=${this._toggleClusterMarkers}
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
></ha-icon-button>
|
></ha-icon-button>
|
||||||
|
`
|
||||||
|
: nothing}
|
||||||
<ha-icon-button
|
<ha-icon-button
|
||||||
.label=${this.hass!.localize(
|
.label=${this.hass!.localize(
|
||||||
"ui.panel.lovelace.cards.map.reset_focus"
|
"ui.panel.lovelace.cards.map.reset_focus"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user