mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 03:06:41 +00:00
Don't make button disabled on error (#10699)
This commit is contained in:
parent
921763b5f1
commit
f70485bc49
@ -193,7 +193,6 @@ class UpdateAvailableCard extends LitElement {
|
|||||||
<span></span>
|
<span></span>
|
||||||
<ha-progress-button
|
<ha-progress-button
|
||||||
.disabled=${!this._version ||
|
.disabled=${!this._version ||
|
||||||
this._error !== undefined ||
|
|
||||||
(this._shouldCreateBackup &&
|
(this._shouldCreateBackup &&
|
||||||
this.supervisor.info.state !== "running")}
|
this.supervisor.info.state !== "running")}
|
||||||
@click=${this._update}
|
@click=${this._update}
|
||||||
@ -306,6 +305,7 @@ class UpdateAvailableCard extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private async _update() {
|
private async _update() {
|
||||||
|
this._error = undefined;
|
||||||
if (this._shouldCreateBackup) {
|
if (this._shouldCreateBackup) {
|
||||||
let backupArgs: HassioPartialBackupCreateParams;
|
let backupArgs: HassioPartialBackupCreateParams;
|
||||||
if (this._updateType === "addon") {
|
if (this._updateType === "addon") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user