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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user