required field bug
This commit is contained in:
parent
22be00a799
commit
54734489e6
|
@ -63,9 +63,10 @@ export class Field extends BaseModel implements Serializable<Field>, FormGenerat
|
||||||
page: [this.page],
|
page: [this.page],
|
||||||
ordinal: [this.ordinal]
|
ordinal: [this.ordinal]
|
||||||
});
|
});
|
||||||
|
let valid = ValidationTypes.None
|
||||||
|
if (this.validations && this.validations[0]==1) valid = ValidationTypes.Required
|
||||||
const arr = new FormArray([
|
const arr = new FormArray([
|
||||||
new FormControl(ValidationTypes.None)
|
new FormControl(valid)
|
||||||
]);
|
]);
|
||||||
|
|
||||||
//formGroup.addControl("multiplicity", this.multiplicity.buildForm());
|
//formGroup.addControl("multiplicity", this.multiplicity.buildForm());
|
||||||
|
|
|
@ -18,7 +18,8 @@ export class RestBase {
|
||||||
/*
|
/*
|
||||||
*/
|
*/
|
||||||
protocol: string = "http";
|
protocol: string = "http";
|
||||||
hostname: string = "localhost";
|
//hostname: string = "localhost";
|
||||||
|
hostname: string = "192.168.32.73";
|
||||||
port: number = 8080;
|
port: number = 8080;
|
||||||
webappname: string = "";
|
webappname: string = "";
|
||||||
restpath: string = "";
|
restpath: string = "";
|
||||||
|
|
Loading…
Reference in New Issue