mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Add indicator/alert to YAML integrations on integration page (#21607)
This commit is contained in:
parent
b23aacef84
commit
9c6aef033d
@ -13,6 +13,7 @@ import {
|
||||
mdiDevices,
|
||||
mdiDotsVertical,
|
||||
mdiDownload,
|
||||
mdiFileCodeOutline,
|
||||
mdiHandExtendedOutline,
|
||||
mdiOpenInNew,
|
||||
mdiPackageVariant,
|
||||
@ -329,6 +330,22 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) {
|
||||
)}</ha-alert
|
||||
>`
|
||||
: ""}
|
||||
${normalEntries.length === 0 &&
|
||||
this._manifest &&
|
||||
!this._manifest.config_flow &&
|
||||
this.hass.config.components.find(
|
||||
(comp) => comp.split(".")[0] === this.domain
|
||||
)
|
||||
? html`<ha-alert alert-type="info"
|
||||
><ha-svg-icon
|
||||
slot="icon"
|
||||
path=${mdiFileCodeOutline}
|
||||
></ha-svg-icon
|
||||
>${this.hass.localize(
|
||||
"ui.panel.config.integrations.config_entry.no_config_flow"
|
||||
)}</ha-alert
|
||||
>`
|
||||
: ""}
|
||||
</div>
|
||||
|
||||
<div class="card-actions">
|
||||
|
Loading…
x
Reference in New Issue
Block a user