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],
|
||||
ordinal: [this.ordinal]
|
||||
});
|
||||
|
||||
let valid = ValidationTypes.None
|
||||
if (this.validations && this.validations[0]==1) valid = ValidationTypes.Required
|
||||
const arr = new FormArray([
|
||||
new FormControl(ValidationTypes.None)
|
||||
new FormControl(valid)
|
||||
]);
|
||||
|
||||
//formGroup.addControl("multiplicity", this.multiplicity.buildForm());
|
||||
|
|
|
@ -18,7 +18,8 @@ export class RestBase {
|
|||
/*
|
||||
*/
|
||||
protocol: string = "http";
|
||||
hostname: string = "localhost";
|
||||
//hostname: string = "localhost";
|
||||
hostname: string = "192.168.32.73";
|
||||
port: number = 8080;
|
||||
webappname: string = "";
|
||||
restpath: string = "";
|
||||
|
|
Loading…
Reference in New Issue