mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
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:
@@ -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"
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
>
|
||||
<div class="inline" slot="start">
|
||||
<ion-icon
|
||||
slot="end"
|
||||
[name]="connection.icon"
|
||||
class="icon"
|
||||
[color]="connection.iconColor"
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user