mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-16 13:56:35 +00:00
Improve entity registry errors display (#8208)
This commit is contained in:
parent
870f0bcbb1
commit
6f4dbdc959
@ -141,8 +141,8 @@ export class EntityRegistrySettingsHelper extends LitElement {
|
|||||||
}
|
}
|
||||||
const stateObj = this.hass.states[this.entry.entity_id];
|
const stateObj = this.hass.states[this.entry.entity_id];
|
||||||
return html`
|
return html`
|
||||||
${this._error ? html` <div class="error">${this._error}</div> ` : ""}
|
|
||||||
<div class="form">
|
<div class="form">
|
||||||
|
${this._error ? html` <div class="error">${this._error}</div> ` : ""}
|
||||||
${!this._componentLoaded
|
${!this._componentLoaded
|
||||||
? this.hass.localize(
|
? this.hass.localize(
|
||||||
"ui.dialogs.helper_settings.platform_not_loaded",
|
"ui.dialogs.helper_settings.platform_not_loaded",
|
||||||
@ -268,6 +268,7 @@ export class EntityRegistrySettingsHelper extends LitElement {
|
|||||||
}
|
}
|
||||||
.error {
|
.error {
|
||||||
color: var(--error-color);
|
color: var(--error-color);
|
||||||
|
margin-bottom: 8px;
|
||||||
}
|
}
|
||||||
.row {
|
.row {
|
||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user