mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Always render title field (#12319)
This commit is contained in:
parent
323d98ecf7
commit
a124ec0717
@ -133,6 +133,12 @@ const ENTITIES = [
|
|||||||
friendly_name: "Update with auto update",
|
friendly_name: "Update with auto update",
|
||||||
auto_update: true,
|
auto_update: true,
|
||||||
}),
|
}),
|
||||||
|
getEntity("update", "update20", "on", {
|
||||||
|
...base_attributes,
|
||||||
|
in_progress: true,
|
||||||
|
title: undefined,
|
||||||
|
friendly_name: "Installing without title",
|
||||||
|
}),
|
||||||
];
|
];
|
||||||
|
|
||||||
@customElement("demo-more-info-update")
|
@customElement("demo-more-info-update")
|
||||||
|
@ -56,13 +56,10 @@ class MoreInfoUpdate extends LitElement {
|
|||||||
></mwc-linear-progress>`
|
></mwc-linear-progress>`
|
||||||
: html`<mwc-linear-progress indeterminate></mwc-linear-progress>`
|
: html`<mwc-linear-progress indeterminate></mwc-linear-progress>`
|
||||||
: ""}
|
: ""}
|
||||||
${this.stateObj.attributes.title
|
<h3>${this.stateObj.attributes.title}</h3>
|
||||||
? html`<h3>${this.stateObj.attributes.title}</h3>`
|
|
||||||
: ""}
|
|
||||||
${this._error
|
${this._error
|
||||||
? html`<ha-alert alert-type="error">${this._error}</ha-alert>`
|
? html`<ha-alert alert-type="error">${this._error}</ha-alert>`
|
||||||
: ""}
|
: ""}
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="key">
|
<div class="key">
|
||||||
${this.hass.localize(
|
${this.hass.localize(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user