mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +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,
|
mdiDevices,
|
||||||
mdiDotsVertical,
|
mdiDotsVertical,
|
||||||
mdiDownload,
|
mdiDownload,
|
||||||
|
mdiFileCodeOutline,
|
||||||
mdiHandExtendedOutline,
|
mdiHandExtendedOutline,
|
||||||
mdiOpenInNew,
|
mdiOpenInNew,
|
||||||
mdiPackageVariant,
|
mdiPackageVariant,
|
||||||
@ -329,6 +330,22 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) {
|
|||||||
)}</ha-alert
|
)}</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>
|
||||||
|
|
||||||
<div class="card-actions">
|
<div class="card-actions">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user