mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 17:26:42 +00:00
Only allow admin to edit UI config (#3674)
Closes https://github.com/home-assistant/home-assistant-polymer/issues/3084
This commit is contained in:
parent
a29d598027
commit
9eae637814
@ -186,16 +186,20 @@ class HUIRoot extends LitElement {
|
|||||||
</paper-item>
|
</paper-item>
|
||||||
`
|
`
|
||||||
: ""}
|
: ""}
|
||||||
<paper-item
|
${this.hass!.user!.is_admin
|
||||||
aria-label=${this.hass!.localize(
|
? html`
|
||||||
"ui.panel.lovelace.menu.configure_ui"
|
<paper-item
|
||||||
)}
|
aria-label=${this.hass!.localize(
|
||||||
@tap="${this._editModeEnable}"
|
"ui.panel.lovelace.menu.configure_ui"
|
||||||
>
|
)}
|
||||||
${this.hass!.localize(
|
@tap="${this._editModeEnable}"
|
||||||
"ui.panel.lovelace.menu.configure_ui"
|
>
|
||||||
)}
|
${this.hass!.localize(
|
||||||
</paper-item>
|
"ui.panel.lovelace.menu.configure_ui"
|
||||||
|
)}
|
||||||
|
</paper-item>
|
||||||
|
`
|
||||||
|
: ""}
|
||||||
<paper-item
|
<paper-item
|
||||||
aria-label=${this.hass!.localize(
|
aria-label=${this.hass!.localize(
|
||||||
"ui.panel.lovelace.menu.help"
|
"ui.panel.lovelace.menu.help"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user