Skip to content

Commit

Permalink
Show a fallback string when repair translation fails (#21400)
Browse files Browse the repository at this point in the history
  • Loading branch information
karwosts authored Jul 19, 2024
1 parent 82d84de commit d078807
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/panels/config/repairs/dialog-repairs-issue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ class DialogRepairsIssue extends LitElement {
this._issue.translation_key || this._issue.issue_id
}.description`,
this._issue.translation_placeholders
)}
) ||
`${this._issue.domain}: ${this._issue.translation_key || this._issue.issue_id}`}
></ha-markdown>
${this._issue.dismissed_version
? html`
Expand Down
3 changes: 2 additions & 1 deletion src/panels/config/repairs/ha-config-repairs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ class HaConfigRepairs extends LitElement {
issue.translation_key || issue.issue_id
}.title`,
issue.translation_placeholders || {}
)}</span
) ||
`${issue.domain}: ${issue.translation_key || issue.issue_id}`}</span
>
<span slot="secondary" class="secondary">
${issue.severity === "critical" || issue.severity === "error"
Expand Down

0 comments on commit d078807

Please sign in to comment.