Remove non fixable from repair dialog (#13292)

This commit is contained in:
Paulus Schoutsen 2022-07-27 13:50:07 -07:00 committed by GitHub
parent 0769b14566
commit a379d29a6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 20 deletions

View File

@ -54,24 +54,16 @@ class DialogRepairsIssue extends LitElement {
)} )}
> >
<div> <div>
<ha-alert ${this._issue.breaks_in_ha_version
.alertType=${this._issue.severity === "error" || ? html`
this._issue.severity === "critical" <ha-alert alert-type="error">
? "error" ${this.hass.localize(
: "warning"} "ui.panel.config.repairs.dialog.breaks_in_version",
.title=${this.hass.localize( { version: this._issue.breaks_in_ha_version }
`ui.panel.config.repairs.${this._issue.severity}` )}
)} </ha-alert>
>${this.hass.localize( `
"ui.panel.config.repairs.dialog.alert_not_fixable" : ""}
)}
${this._issue.breaks_in_ha_version
? this.hass.localize(
"ui.panel.config.repairs.dialog.breaks_in_version",
{ version: this._issue.breaks_in_ha_version }
)
: ""}
</ha-alert>
<ha-markdown <ha-markdown
allowsvg allowsvg
breaks breaks

View File

@ -1246,8 +1246,7 @@
"learn": "Learn more", "learn": "Learn more",
"ignore": "Ignore", "ignore": "Ignore",
"unignore": "Unignore", "unignore": "Unignore",
"alert_not_fixable": "We cannot repair this issue for you.", "breaks_in_version": "This will break in version {version}. Fix this issue before upgrading.",
"breaks_in_version": "This will break in version {version}. Please fix this issue before upgrading.",
"ignored_in_version_short": "Ignored in version {version}", "ignored_in_version_short": "Ignored in version {version}",
"ignored_in_version": "This issue was ignored in version {version}." "ignored_in_version": "This issue was ignored in version {version}."
} }