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>
<ha-alert
.alertType=${this._issue.severity === "error" ||
this._issue.severity === "critical"
? "error"
: "warning"}
.title=${this.hass.localize(
`ui.panel.config.repairs.${this._issue.severity}`
)}
>${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>
${this._issue.breaks_in_ha_version
? html`
<ha-alert alert-type="error">
${this.hass.localize(
"ui.panel.config.repairs.dialog.breaks_in_version",
{ version: this._issue.breaks_in_ha_version }
)}
</ha-alert>
`
: ""}
<ha-markdown
allowsvg
breaks

View File

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