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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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>

View File

@ -1808,7 +1808,8 @@
"documentation": "Documentation",
"configure": "Configure",
"documentation_description": "Find extra information about your device",
"restart_homeassistant": "[%key:ui::panel::config::system_dashboard::restart_homeassistant%]"
"restart_homeassistant": "[%key:ui::panel::config::system_dashboard::restart_homeassistant%]",
"loading_system_data": "Loading processor and memory data..."
},
"info": {
"caption": "About",