mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 07:16:39 +00:00
Add loading info text to hardware config page (#15616)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
parent
7b4850b5d6
commit
1a1c00ba62
@ -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>
|
||||
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user