mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Fix onboarding password form (#18665)
This commit is contained in:
parent
de370d6384
commit
291e9fc0a2
@ -10,7 +10,7 @@ import "../ha-textfield";
|
|||||||
|
|
||||||
@customElement("ha-selector-text")
|
@customElement("ha-selector-text")
|
||||||
export class HaTextSelector extends LitElement {
|
export class HaTextSelector extends LitElement {
|
||||||
@property() public hass!: HomeAssistant;
|
@property() public hass?: HomeAssistant;
|
||||||
|
|
||||||
@property() public value?: any;
|
@property() public value?: any;
|
||||||
|
|
||||||
@ -76,11 +76,11 @@ export class HaTextSelector extends LitElement {
|
|||||||
${this.selector.text?.type === "password"
|
${this.selector.text?.type === "password"
|
||||||
? html`<ha-icon-button
|
? html`<ha-icon-button
|
||||||
toggles
|
toggles
|
||||||
.label=${this.hass.localize(
|
.label=${this.hass?.localize(
|
||||||
this._unmaskedPassword
|
this._unmaskedPassword
|
||||||
? "ui.components.selectors.text.hide_password"
|
? "ui.components.selectors.text.hide_password"
|
||||||
: "ui.components.selectors.text.show_password"
|
: "ui.components.selectors.text.show_password"
|
||||||
)}
|
) || (this._unmaskedPassword ? "Hide password" : "Show password")}
|
||||||
@click=${this._toggleUnmaskedPassword}
|
@click=${this._toggleUnmaskedPassword}
|
||||||
.path=${this._unmaskedPassword ? mdiEyeOff : mdiEye}
|
.path=${this._unmaskedPassword ? mdiEyeOff : mdiEye}
|
||||||
></ha-icon-button>`
|
></ha-icon-button>`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user