mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +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
|
||||
? html`
|
||||
${this.label
|
||||
? html`${this.label}${this.required ? " *" : ""}`
|
||||
? html`${this.label}${this.required ? "*" : ""}`
|
||||
: ""}
|
||||
<ha-slider
|
||||
.min=${this.selector.number?.min}
|
||||
|
@ -21,9 +21,7 @@ export class HaTemplateSelector extends LitElement {
|
||||
|
||||
protected render() {
|
||||
return html`
|
||||
${this.label
|
||||
? html`<p>${this.label}${this.required ? " *" : ""}</p>`
|
||||
: ""}
|
||||
${this.label ? html`<p>${this.label}${this.required ? "*" : ""}</p>` : ""}
|
||||
<ha-code-editor
|
||||
mode="jinja2"
|
||||
.hass=${this.hass}
|
||||
|
Loading…
x
Reference in New Issue
Block a user