Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions hassio/src/update-available/update-available-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,7 @@ class UpdateAvailableCard extends LitElement {
</a>`
: ""}
<span></span>
<ha-progress-button
.disabled=${!this._version ||
(this._shouldCreateBackup &&
this.supervisor.info?.state !== "running")}
@click=${this._update}
raised
>
<ha-progress-button @click=${this._update} raised>
${this.supervisor.localize("common.update")}
</ha-progress-button>
</div>
Expand Down Expand Up @@ -360,8 +354,14 @@ class UpdateAvailableCard extends LitElement {
}

private async _update() {
if (this._shouldCreateBackup && this.supervisor.info.state === "freeze") {
this._error = this.supervisor.localize("backup.backup_already_running");
return;
}

this._error = undefined;
this._updating = true;

try {
if (this._updateType === "addon") {
await updateHassioAddon(
Expand Down
3 changes: 2 additions & 1 deletion src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -4514,7 +4514,8 @@
"confirm_password": "Confirm backup password",
"password_protection": "Password protection",
"enter_password": "Please enter a password.",
"passwords_not_matching": "The passwords does not match"
"passwords_not_matching": "The passwords does not match",
"backup_already_running": "A backup or restore is already running, creating a new backup is currently not possible, try again later."
},
"dialog": {
"network": {
Expand Down