mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 03:06:41 +00:00
Remove toggles from ha-icon-button (#24331)
This commit is contained in:
parent
9073282174
commit
fb1ee2ed1d
@ -40,7 +40,6 @@ export class HaCopyTextfield extends LitElement {
|
|||||||
${this.maskedValue
|
${this.maskedValue
|
||||||
? html`<ha-icon-button
|
? html`<ha-icon-button
|
||||||
class="toggle-unmasked"
|
class="toggle-unmasked"
|
||||||
toggles
|
|
||||||
.label=${this.hass.localize(
|
.label=${this.hass.localize(
|
||||||
`ui.common.${this._showMasked ? "show" : "hide"}`
|
`ui.common.${this._showMasked ? "show" : "hide"}`
|
||||||
)}
|
)}
|
||||||
|
@ -80,7 +80,6 @@ export class HaFormString extends LitElement implements HaFormElement {
|
|||||||
if (!this.isPassword) return nothing;
|
if (!this.isPassword) return nothing;
|
||||||
return html`
|
return html`
|
||||||
<ha-icon-button
|
<ha-icon-button
|
||||||
toggles
|
|
||||||
.label=${this.localize?.(
|
.label=${this.localize?.(
|
||||||
`${this.localizeBaseKey}.${
|
`${this.localizeBaseKey}.${
|
||||||
this.unmaskedPassword ? "hide_password" : "show_password"
|
this.unmaskedPassword ? "hide_password" : "show_password"
|
||||||
|
@ -132,7 +132,6 @@ export class HaPasswordField extends LitElement {
|
|||||||
@change=${this._handleChangeEvent}
|
@change=${this._handleChangeEvent}
|
||||||
></ha-textfield>
|
></ha-textfield>
|
||||||
<ha-icon-button
|
<ha-icon-button
|
||||||
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"
|
||||||
|
@ -95,7 +95,6 @@ export class HaTextSelector extends LitElement {
|
|||||||
></ha-textfield>
|
></ha-textfield>
|
||||||
${this.selector.text?.type === "password"
|
${this.selector.text?.type === "password"
|
||||||
? html`<ha-icon-button
|
? html`<ha-icon-button
|
||||||
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"
|
||||||
|
@ -153,7 +153,6 @@ class ConfigUrlForm extends LitElement {
|
|||||||
? html`
|
? html`
|
||||||
<ha-icon-button
|
<ha-icon-button
|
||||||
class="toggle-unmasked-url"
|
class="toggle-unmasked-url"
|
||||||
toggles
|
|
||||||
.label=${this.hass.localize(
|
.label=${this.hass.localize(
|
||||||
`ui.panel.config.common.${this._unmaskedExternalUrl ? "hide" : "show"}_url`
|
`ui.panel.config.common.${this._unmaskedExternalUrl ? "hide" : "show"}_url`
|
||||||
)}
|
)}
|
||||||
@ -254,7 +253,6 @@ class ConfigUrlForm extends LitElement {
|
|||||||
? html`
|
? html`
|
||||||
<ha-icon-button
|
<ha-icon-button
|
||||||
class="toggle-unmasked-url"
|
class="toggle-unmasked-url"
|
||||||
toggles
|
|
||||||
.label=${this.hass.localize(
|
.label=${this.hass.localize(
|
||||||
`ui.panel.config.common.${this._unmaskedInternalUrl ? "hide" : "show"}_url`
|
`ui.panel.config.common.${this._unmaskedInternalUrl ? "hide" : "show"}_url`
|
||||||
)}
|
)}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user