mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 01:06:35 +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();
|
const searchParams = extractSearchParamsObject();
|
||||||
if (searchParams.edit === "1") {
|
if (searchParams.edit === "1") {
|
||||||
this._clearParam("edit");
|
this._clearParam("edit");
|
||||||
if (this.hass!.user?.is_admin) {
|
if (this.hass!.user?.is_admin && this.lovelace!.mode === "storage") {
|
||||||
this.lovelace!.setEditMode(true);
|
this.lovelace!.setEditMode(true);
|
||||||
}
|
}
|
||||||
} else if (searchParams.conversation === "1") {
|
} else if (searchParams.conversation === "1") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user