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 ${this._error
? html`<ha-alert alert-type="error">${this._error}</ha-alert>` ? 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` ? html`
${this._changelogContent ${this._changelogContent
? html` ? html`
@ -177,7 +183,7 @@ class UpdateAvailableCard extends LitElement {
)} )}
</p>`} </p>`}
</div> </div>
${this._action === null ${this._version !== this._version_latest && this._action === null
? html` ? html`
<div class="card-actions"> <div class="card-actions">
${changelog ${changelog

View File

@ -4269,7 +4269,8 @@
"create_backup": "Create backup before updating", "create_backup": "Create backup before updating",
"description": "You have {version} installed. Click update to update to version {newest_version}", "description": "You have {version} installed. Click update to update to version {newest_version}",
"updating": "Updating {name} to version {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": { "confirm": {
"restart": { "restart": {