convert all inputs to text except login (#1356)

This commit is contained in:
Lucy C
2022-03-28 10:32:09 -06:00
committed by GitHub
parent a182b0c260
commit e13fab7d9f
2 changed files with 38 additions and 20 deletions

View File

@@ -70,11 +70,7 @@
</ion-textarea>
<ng-template #notTextArea>
<ion-input
[type]="
spec.type === 'string' && spec.masked && !unmasked[entry.key]
? 'password'
: 'text'
"
type="text"
[inputmode]="spec.type === 'number' ? 'tel' : 'text'"
[placeholder]="spec.placeholder || 'Enter ' + spec.name"
[formControlName]="entry.key"
@@ -301,7 +297,7 @@
>
<ion-item color="dark">
<ion-input
[type]="$any(spec.spec).masked ? 'password' : 'text'"
type="text"
[inputmode]="spec.subtype === 'number' ? 'tel' : 'text'"
[placeholder]="
$any(spec.spec).placeholder || 'Enter ' + spec.name