mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 00:36:34 +00:00
Don't allow yaml dashboard to be in edit mode (#18879)
This commit is contained in:
parent
cf00ac74c6
commit
b273b31b03
@ -580,7 +580,7 @@ class HUIRoot extends LitElement {
|
||||
const searchParams = extractSearchParamsObject();
|
||||
if (searchParams.edit === "1") {
|
||||
this._clearParam("edit");
|
||||
if (this.hass!.user?.is_admin) {
|
||||
if (this.hass!.user?.is_admin && this.lovelace!.mode === "storage") {
|
||||
this.lovelace!.setEditMode(true);
|
||||
}
|
||||
} else if (searchParams.conversation === "1") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user