mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 15:26:36 +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
|
${dongles?.length
|
||||||
? html`<ha-card>
|
? html`<ha-card outlined>
|
||||||
${dongles.map((dongle) => {
|
${dongles.map((dongle) => {
|
||||||
const configEntry = dongle.config_entries
|
const configEntry = dongle.config_entries
|
||||||
.map((id) => this._configEntries?.[id])
|
.map((id) => this._configEntries?.[id])
|
||||||
@ -441,6 +441,16 @@ class HaConfigHardware extends SubscribeMixin(LitElement) {
|
|||||||
></ha-chart-base>
|
></ha-chart-base>
|
||||||
</div>
|
</div>
|
||||||
</ha-card>`
|
</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>
|
</div>
|
||||||
</hass-subpage>
|
</hass-subpage>
|
||||||
|
@ -1808,7 +1808,8 @@
|
|||||||
"documentation": "Documentation",
|
"documentation": "Documentation",
|
||||||
"configure": "Configure",
|
"configure": "Configure",
|
||||||
"documentation_description": "Find extra information about your device",
|
"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": {
|
"info": {
|
||||||
"caption": "About",
|
"caption": "About",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user