mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
more-info-camera: disable "download_snapshot" if idle (#25027)
* disable download_snapshot if idle * prettier
This commit is contained in:
parent
f4e3fdb98e
commit
6793753755
@ -45,7 +45,8 @@ class MoreInfoCamera extends LitElement {
|
|||||||
<ha-progress-button
|
<ha-progress-button
|
||||||
@click=${this._downloadSnapshot}
|
@click=${this._downloadSnapshot}
|
||||||
.progress=${this._waiting}
|
.progress=${this._waiting}
|
||||||
.disabled=${this.stateObj.state === UNAVAILABLE}
|
.disabled=${this.stateObj.state === UNAVAILABLE ||
|
||||||
|
this.stateObj.state === "idle"}
|
||||||
>
|
>
|
||||||
${this.hass.localize(
|
${this.hass.localize(
|
||||||
"ui.dialogs.more_info_control.camera.download_snapshot"
|
"ui.dialogs.more_info_control.camera.download_snapshot"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user