mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +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"
|
[(ngModel)]="passwordVer"
|
||||||
[ngModelOptions]="{'standalone': true}"
|
[ngModelOptions]="{'standalone': true}"
|
||||||
[type]="!unmasked2 ? 'password' : 'text'"
|
[type]="!unmasked2 ? 'password' : 'text'"
|
||||||
(ionChange)="checkVer()"
|
|
||||||
placeholder="Retype Password"
|
placeholder="Retype Password"
|
||||||
|
(ionChange)="checkVer()"
|
||||||
|
maxlength="64"
|
||||||
></ion-input>
|
></ion-input>
|
||||||
<ion-button
|
<ion-button
|
||||||
fill="clear"
|
fill="clear"
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
>
|
>
|
||||||
<div class="inline" slot="start">
|
<div class="inline" slot="start">
|
||||||
<ion-icon
|
<ion-icon
|
||||||
slot="end"
|
|
||||||
[name]="connection.icon"
|
[name]="connection.icon"
|
||||||
class="icon"
|
class="icon"
|
||||||
[color]="connection.iconColor"
|
[color]="connection.iconColor"
|
||||||
|
|||||||
@@ -1725,7 +1725,7 @@ export module Mock {
|
|||||||
],
|
],
|
||||||
'union-list': undefined,
|
'union-list': undefined,
|
||||||
'random-enum': 'option2',
|
'random-enum': 'option2',
|
||||||
'favorite-number': null,
|
'favorite-number': 0,
|
||||||
rpcsettings: {
|
rpcsettings: {
|
||||||
laws: {
|
laws: {
|
||||||
law1: 'The first law Amended',
|
law1: 'The first law Amended',
|
||||||
|
|||||||
@@ -523,7 +523,9 @@ export function convertValuesRecursive(
|
|||||||
if (!control) return
|
if (!control) return
|
||||||
|
|
||||||
if (valueSpec.type === 'number') {
|
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') {
|
} else if (valueSpec.type === 'string') {
|
||||||
if (!control.value) control.setValue(null)
|
if (!control.value) control.setValue(null)
|
||||||
} else if (valueSpec.type === 'object') {
|
} else if (valueSpec.type === 'object') {
|
||||||
|
|||||||
Reference in New Issue
Block a user