mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 17:56:46 +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"
|
collectionKey="energy_dashboard"
|
||||||
>
|
>
|
||||||
${this.hass.user?.is_admin
|
${this.hass.user?.is_admin
|
||||||
? html`
|
? html` <ha-list-item
|
||||||
<ha-list-item
|
|
||||||
slot="overflow-menu"
|
slot="overflow-menu"
|
||||||
graphic="icon"
|
graphic="icon"
|
||||||
@request-selected=${this._navigateConfig}
|
@request-selected=${this._navigateConfig}
|
||||||
>
|
>
|
||||||
<ha-svg-icon slot="graphic" .path=${mdiPencil}>
|
<ha-svg-icon slot="graphic" .path=${mdiPencil}> </ha-svg-icon>
|
||||||
</ha-svg-icon>
|
|
||||||
${this.hass!.localize("ui.panel.energy.configure")}
|
${this.hass!.localize("ui.panel.energy.configure")}
|
||||||
</ha-list-item>
|
</ha-list-item>`
|
||||||
|
: nothing}
|
||||||
<ha-list-item
|
<ha-list-item
|
||||||
slot="overflow-menu"
|
slot="overflow-menu"
|
||||||
graphic="icon"
|
graphic="icon"
|
||||||
@request-selected=${this._dumpCSV}
|
@request-selected=${this._dumpCSV}
|
||||||
>
|
>
|
||||||
<ha-svg-icon slot="graphic" .path=${mdiDownload}>
|
<ha-svg-icon slot="graphic" .path=${mdiDownload}> </ha-svg-icon>
|
||||||
</ha-svg-icon>
|
|
||||||
${this.hass!.localize("ui.panel.energy.download_data")}
|
${this.hass!.localize("ui.panel.energy.download_data")}
|
||||||
</ha-list-item>
|
</ha-list-item>
|
||||||
`
|
|
||||||
: nothing}
|
|
||||||
</hui-energy-period-selector>
|
</hui-energy-period-selector>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user