mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 02:36:37 +00:00
Show number config entries when no devices/entities (#16766)
This commit is contained in:
parent
ddaf403378
commit
6c684fd8ee
@ -5,6 +5,7 @@ import {
|
|||||||
mdiCogOutline,
|
mdiCogOutline,
|
||||||
mdiDevices,
|
mdiDevices,
|
||||||
mdiHandExtendedOutline,
|
mdiHandExtendedOutline,
|
||||||
|
mdiPuzzleOutline,
|
||||||
mdiShapeOutline,
|
mdiShapeOutline,
|
||||||
} from "@mdi/js";
|
} from "@mdi/js";
|
||||||
import { css, CSSResultGroup, html, LitElement, TemplateResult } from "lit";
|
import { css, CSSResultGroup, html, LitElement, TemplateResult } from "lit";
|
||||||
@ -140,6 +141,22 @@ export class HaIntegrationCard extends LitElement {
|
|||||||
</ha-list-item>
|
</ha-list-item>
|
||||||
</a>`
|
</a>`
|
||||||
: ""}
|
: ""}
|
||||||
|
${devices.length === 0 && entities.length === 0
|
||||||
|
? html`<a href=${`/config/integrations/integration/${this.domain}`}>
|
||||||
|
<ha-list-item hasMeta graphic="icon">
|
||||||
|
<ha-svg-icon
|
||||||
|
.path=${mdiPuzzleOutline}
|
||||||
|
slot="graphic"
|
||||||
|
></ha-svg-icon>
|
||||||
|
${this.hass.localize(
|
||||||
|
`ui.panel.config.integrations.config_entry.entries`,
|
||||||
|
"count",
|
||||||
|
this.items.length
|
||||||
|
)}
|
||||||
|
<ha-icon-next slot="meta"></ha-icon-next>
|
||||||
|
</ha-list-item>
|
||||||
|
</a>`
|
||||||
|
: ""}
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
@ -3266,6 +3266,7 @@
|
|||||||
"devices": "{count} {count, plural,\n one {device}\n other {devices}\n}",
|
"devices": "{count} {count, plural,\n one {device}\n other {devices}\n}",
|
||||||
"entities": "{count} {count, plural,\n one {entity}\n other {entities}\n}",
|
"entities": "{count} {count, plural,\n one {entity}\n other {entities}\n}",
|
||||||
"services": "{count} {count, plural,\n one {service}\n other {services}\n}",
|
"services": "{count} {count, plural,\n one {service}\n other {services}\n}",
|
||||||
|
"entries": "{count} {count, plural,\n one {entry}\n other {entries}\n}",
|
||||||
"rename": "Rename",
|
"rename": "Rename",
|
||||||
"configure": "Configure",
|
"configure": "Configure",
|
||||||
"system_options": "System options",
|
"system_options": "System options",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user