comment out required label
This commit is contained in:
parent
18155fb5ee
commit
cd8a367429
|
@ -4,7 +4,7 @@
|
|||
<div class="row">
|
||||
<div class="form-group col-md-12">
|
||||
<label>Label</label>
|
||||
<input type="text" class="form-control" formControlName="label" id="label" required >
|
||||
<input type="text" class="form-control" formControlName="label" id="label">
|
||||
<!-- <div *ngIf="form.get('label').invalid && (form.get('label').dirty || form.get('label').touched)" class="alert alert-danger"> -->
|
||||
<!-- <div *ngIf="form.get('label').errors.required" class="alert alert-danger">
|
||||
Name is required.
|
||||
|
@ -67,7 +67,8 @@
|
|||
</a>
|
||||
</div>
|
||||
|
||||
<button class="btn btn-primary" style="margin-top:20px;" type="submit" [disabled]="!form.valid">Save</button>
|
||||
<button class="btn btn-primary" style="margin-top:20px;" type="submit">Save</button>
|
||||
<!-- [disabled]="!form.valid" -->
|
||||
</form>
|
||||
</div>
|
||||
<p>Form value: {{ form.value | json }}</p>
|
||||
|
|
|
@ -36,7 +36,7 @@ export class DatasetProfileModel extends BaseModel implements Serializable<Datas
|
|||
// })
|
||||
formGroup.addControl('pages', this.formBuilder.array(pagesFormArray));
|
||||
|
||||
formGroup.addControl('label', new FormControl(this.label, [Validators.required]));
|
||||
formGroup.addControl('label', new FormControl(this.label));
|
||||
return formGroup;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue