mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 01:36:49 +00:00
Fix show password toggle (#5979)
This commit is contained in:
parent
34e06351fb
commit
b8d2c551e0
@ -49,7 +49,6 @@ export class HaFormString extends LitElement implements HaFormElement {
|
|||||||
>
|
>
|
||||||
<ha-icon-button
|
<ha-icon-button
|
||||||
toggles
|
toggles
|
||||||
.active=${this._unmaskedPassword}
|
|
||||||
slot="suffix"
|
slot="suffix"
|
||||||
.icon=${this._unmaskedPassword ? "hass:eye-off" : "hass:eye"}
|
.icon=${this._unmaskedPassword ? "hass:eye-off" : "hass:eye"}
|
||||||
id="iconButton"
|
id="iconButton"
|
||||||
@ -72,8 +71,8 @@ export class HaFormString extends LitElement implements HaFormElement {
|
|||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
private _toggleUnmaskedPassword(ev: Event): void {
|
private _toggleUnmaskedPassword(): void {
|
||||||
this._unmaskedPassword = (ev.target as any).active;
|
this._unmaskedPassword = !this._unmaskedPassword;
|
||||||
}
|
}
|
||||||
|
|
||||||
private _valueChanged(ev: Event): void {
|
private _valueChanged(ev: Event): void {
|
||||||
|
@ -176,7 +176,6 @@ export class HaVoiceCommandDialog extends LitElement {
|
|||||||
`
|
`
|
||||||
: ""}
|
: ""}
|
||||||
<ha-icon-button
|
<ha-icon-button
|
||||||
.active=${Boolean(this.results)}
|
|
||||||
icon="hass:microphone"
|
icon="hass:microphone"
|
||||||
@click=${this._toggleListening}
|
@click=${this._toggleListening}
|
||||||
>
|
>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user