From a7b558b64ad27331d686a2b3604fcfc0256e6a95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Mon, 13 Dec 2021 17:20:38 +0100 Subject: [PATCH] Add no update available message (#10891) --- hassio/src/update-available/update-available-card.ts | 10 ++++++++-- src/translations/en.json | 3 ++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/hassio/src/update-available/update-available-card.ts b/hassio/src/update-available/update-available-card.ts index 4ad19d1c31..46e0bc64cc 100644 --- a/hassio/src/update-available/update-available-card.ts +++ b/hassio/src/update-available/update-available-card.ts @@ -132,7 +132,13 @@ class UpdateAvailableCard extends LitElement { ${this._error ? html`${this._error}` : ""} - ${this._action === null + ${this._version === this._version_latest + ? html`

+ ${this.supervisor.localize("update_available.no_update", { + name: this._name, + })} +

` + : this._action === null ? html` ${this._changelogContent ? html` @@ -177,7 +183,7 @@ class UpdateAvailableCard extends LitElement { )}

`} - ${this._action === null + ${this._version !== this._version_latest && this._action === null ? html`
${changelog diff --git a/src/translations/en.json b/src/translations/en.json index 79154aff3d..d8b350b504 100755 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -4269,7 +4269,8 @@ "create_backup": "Create backup before updating", "description": "You have {version} installed. Click update to update to version {newest_version}", "updating": "Updating {name} to version {version}", - "creating_backup": "Creating backup of {name}" + "creating_backup": "Creating backup of {name}", + "no_update": "No update available for {name}" }, "confirm": { "restart": {