mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-13 12:26:35 +00:00
Render brand icon for repairs based on issue_domain (#13290)
This commit is contained in:
parent
a379d29a6c
commit
afc69cb270
@ -7,6 +7,7 @@ import type { DataEntryFlowStep } from "./data_entry_flow";
|
|||||||
|
|
||||||
export interface RepairsIssue {
|
export interface RepairsIssue {
|
||||||
domain: string;
|
domain: string;
|
||||||
|
issue_domain?: string;
|
||||||
issue_id: string;
|
issue_id: string;
|
||||||
active: boolean;
|
active: boolean;
|
||||||
is_fixable: boolean;
|
is_fixable: boolean;
|
||||||
|
@ -44,7 +44,7 @@ class HaConfigRepairs extends LitElement {
|
|||||||
(issue) => html`
|
(issue) => html`
|
||||||
<ha-list-item
|
<ha-list-item
|
||||||
twoline
|
twoline
|
||||||
graphic="avatar"
|
graphic="medium"
|
||||||
.hasMeta=${!this.narrow}
|
.hasMeta=${!this.narrow}
|
||||||
.issue=${issue}
|
.issue=${issue}
|
||||||
class=${issue.ignored ? "ignored" : ""}
|
class=${issue.ignored ? "ignored" : ""}
|
||||||
@ -53,7 +53,7 @@ class HaConfigRepairs extends LitElement {
|
|||||||
<img
|
<img
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
src=${brandsUrl({
|
src=${brandsUrl({
|
||||||
domain: issue.domain,
|
domain: issue.issue_domain || issue.domain,
|
||||||
type: "icon",
|
type: "icon",
|
||||||
useFallback: true,
|
useFallback: true,
|
||||||
darkOptimized: this.hass.themes?.darkMode,
|
darkOptimized: this.hass.themes?.darkMode,
|
||||||
@ -114,6 +114,9 @@ class HaConfigRepairs extends LitElement {
|
|||||||
.ignored {
|
.ignored {
|
||||||
opacity: var(--light-secondary-opacity);
|
opacity: var(--light-secondary-opacity);
|
||||||
}
|
}
|
||||||
|
ha-list-item {
|
||||||
|
--mdc-list-item-graphic-size: 40px;
|
||||||
|
}
|
||||||
button.show-more {
|
button.show-more {
|
||||||
color: var(--primary-color);
|
color: var(--primary-color);
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user