1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-20 02:38:53 +00:00

Add loading info text to hardware config page (#15616)

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
Philip Allgaier
2023-03-01 15:10:14 +01:00
committed by GitHub
parent 7b4850b5d6
commit 1a1c00ba62
2 changed files with 13 additions and 2 deletions

View File

@@ -359,7 +359,7 @@ class HaConfigHardware extends SubscribeMixin(LitElement) {
`
: ""}
${dongles?.length
? html`<ha-card>
? html`<ha-card outlined>
${dongles.map((dongle) => {
const configEntry = dongle.config_entries
.map((id) => this._configEntries?.[id])
@@ -441,6 +441,16 @@ class HaConfigHardware extends SubscribeMixin(LitElement) {
></ha-chart-base>
</div>
</ha-card>`
: isComponentLoaded(this.hass, "hardware")
? html`<ha-card outlined>
<div class="card-content">
<div class="value">
${this.hass.localize(
"ui.panel.config.hardware.loading_system_data"
)}
</div>
</div>
</ha-card>`
: ""}
</div>
</hass-subpage>