required field bug

This commit is contained in:
annampak 2018-01-22 17:02:09 +02:00
parent 22be00a799
commit 54734489e6
2 changed files with 5 additions and 3 deletions

View File

@ -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());

View File

@ -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 = "";