fix config bug for number 0 and also maybe conenction icon (#2098)

* fix config bug for number 0 and also maybe conenction icon

* add max password length to confimation input
This commit is contained in:
Matt Hill
2023-01-10 14:53:57 -07:00
committed by GitHub
parent c3d8c72302
commit 5656fd0b96
4 changed files with 6 additions and 4 deletions

View File

@@ -48,8 +48,9 @@
[(ngModel)]="passwordVer"
[ngModelOptions]="{'standalone': true}"
[type]="!unmasked2 ? 'password' : 'text'"
(ionChange)="checkVer()"
placeholder="Retype Password"
(ionChange)="checkVer()"
maxlength="64"
></ion-input>
<ion-button
fill="clear"

View File

@@ -5,7 +5,6 @@
>
<div class="inline" slot="start">
<ion-icon
slot="end"
[name]="connection.icon"
class="icon"
[color]="connection.iconColor"

View File

@@ -1725,7 +1725,7 @@ export module Mock {
],
'union-list': undefined,
'random-enum': 'option2',
'favorite-number': null,
'favorite-number': 0,
rpcsettings: {
laws: {
law1: 'The first law Amended',

View File

@@ -523,7 +523,9 @@ export function convertValuesRecursive(
if (!control) return
if (valueSpec.type === 'number') {
control.setValue(control.value ? Number(control.value) : null)
control.setValue(
control.value || control.value === 0 ? Number(control.value) : null,
)
} else if (valueSpec.type === 'string') {
if (!control.value) control.setValue(null)
} else if (valueSpec.type === 'object') {