Add no update available message (#10891)

This commit is contained in:
Joakim Sørensen 2021-12-13 17:20:38 +01:00 committed by GitHub
parent b7665bef6f
commit a7b558b64a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 3 deletions

View File

@ -132,7 +132,13 @@ class UpdateAvailableCard extends LitElement {
${this._error
? html`<ha-alert alert-type="error">${this._error}</ha-alert>`
: ""}
${this._action === null
${this._version === this._version_latest
? html`<p>
${this.supervisor.localize("update_available.no_update", {
name: this._name,
})}
</p>`
: this._action === null
? html`
${this._changelogContent
? html`
@ -177,7 +183,7 @@ class UpdateAvailableCard extends LitElement {
)}
</p>`}
</div>
${this._action === null
${this._version !== this._version_latest && this._action === null
? html`
<div class="card-actions">
${changelog

View File

@ -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": {