mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Make required asterisk consistent (#17403)
This commit is contained in:
parent
85c3d8ecd8
commit
ece676e3dc
@ -34,7 +34,7 @@ export class HaNumberSelector extends LitElement {
|
|||||||
${!isBox
|
${!isBox
|
||||||
? html`
|
? html`
|
||||||
${this.label
|
${this.label
|
||||||
? html`${this.label}${this.required ? " *" : ""}`
|
? html`${this.label}${this.required ? "*" : ""}`
|
||||||
: ""}
|
: ""}
|
||||||
<ha-slider
|
<ha-slider
|
||||||
.min=${this.selector.number?.min}
|
.min=${this.selector.number?.min}
|
||||||
|
@ -21,9 +21,7 @@ export class HaTemplateSelector extends LitElement {
|
|||||||
|
|
||||||
protected render() {
|
protected render() {
|
||||||
return html`
|
return html`
|
||||||
${this.label
|
${this.label ? html`<p>${this.label}${this.required ? "*" : ""}</p>` : ""}
|
||||||
? html`<p>${this.label}${this.required ? " *" : ""}</p>`
|
|
||||||
: ""}
|
|
||||||
<ha-code-editor
|
<ha-code-editor
|
||||||
mode="jinja2"
|
mode="jinja2"
|
||||||
.hass=${this.hass}
|
.hass=${this.hass}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user