mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 09:16:38 +00:00
Energy CSV download should not require admin (#20704)
This commit is contained in:
parent
e79bc71ab7
commit
f923deb71d
@ -88,27 +88,23 @@ class PanelEnergy extends LitElement {
|
||||
collectionKey="energy_dashboard"
|
||||
>
|
||||
${this.hass.user?.is_admin
|
||||
? html`
|
||||
<ha-list-item
|
||||
? html` <ha-list-item
|
||||
slot="overflow-menu"
|
||||
graphic="icon"
|
||||
@request-selected=${this._navigateConfig}
|
||||
>
|
||||
<ha-svg-icon slot="graphic" .path=${mdiPencil}>
|
||||
</ha-svg-icon>
|
||||
<ha-svg-icon slot="graphic" .path=${mdiPencil}> </ha-svg-icon>
|
||||
${this.hass!.localize("ui.panel.energy.configure")}
|
||||
</ha-list-item>
|
||||
</ha-list-item>`
|
||||
: nothing}
|
||||
<ha-list-item
|
||||
slot="overflow-menu"
|
||||
graphic="icon"
|
||||
@request-selected=${this._dumpCSV}
|
||||
>
|
||||
<ha-svg-icon slot="graphic" .path=${mdiDownload}>
|
||||
</ha-svg-icon>
|
||||
<ha-svg-icon slot="graphic" .path=${mdiDownload}> </ha-svg-icon>
|
||||
${this.hass!.localize("ui.panel.energy.download_data")}
|
||||
</ha-list-item>
|
||||
`
|
||||
: nothing}
|
||||
</hui-energy-period-selector>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user