mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Avoid URL and email fields getting masked in add-on config view (#24509)
* Avoid URL and email fields getting masked in add-on config view The backend will set "format" for add-on config options of type "password", "url" and "email", to exactly these three values. Only "password" fields should be masked though. * lint --------- Co-authored-by: Petar Petrov <MindFreeze@users.noreply.github.com>
This commit is contained in:
parent
48338e0886
commit
ba19849182
@ -113,8 +113,9 @@ class HassioAddonConfig extends LitElement {
|
|||||||
required: entry.required,
|
required: entry.required,
|
||||||
selector: {
|
selector: {
|
||||||
text: {
|
text: {
|
||||||
type:
|
type: entry.format
|
||||||
entry.format || MASKED_FIELDS.includes(entry.name)
|
? entry.format
|
||||||
|
: MASKED_FIELDS.includes(entry.name)
|
||||||
? "password"
|
? "password"
|
||||||
: "text",
|
: "text",
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user