1
0
mirror of https://github.com/home-assistant/frontend.git synced 2026-02-15 07:25:54 +00:00

Disable devices/entities click in scene review mode (#22940)

This commit is contained in:
Wendelin
2024-11-21 14:57:02 +01:00
committed by GitHub
parent 6b8068a22a
commit fc2e3b7bcf

View File

@@ -488,7 +488,10 @@ export class HaSceneEditor extends SubscribeMixin(
? "icon"
: undefined}
.entityId=${entityId}
@click=${this._showMoreInfo}
@click=${this._mode === "live"
? this._showMoreInfo
: undefined}
.noninteractive=${this._mode === "review"}
>
${this._mode === "live"
? html`
@@ -559,7 +562,10 @@ export class HaSceneEditor extends SubscribeMixin(
? "icon"
: undefined}
.entityId=${entityId}
@click=${this._showMoreInfo}
@click=${this._mode === "live"
? this._showMoreInfo
: undefined}
.noninteractive=${this._mode === "review"}
>
${this._mode === "live"
? html` <state-badge