Progress Bar: Add condition for visibillity if a field has id.
This commit is contained in:
parent
3fc307c831
commit
a737fec19d
|
@ -176,10 +176,12 @@ export class FormProgressIndicationComponent extends BaseComponent implements On
|
|||
valueCurrent++;
|
||||
}
|
||||
} else if (formControl instanceof FormGroup) {
|
||||
if(!formControl.get('id')?.value || this.visibilityRulesService.checkElementVisibility(formControl.get('id').value)) {
|
||||
Object.keys(formControl.controls).forEach(item => {
|
||||
const control = formControl.get(item);
|
||||
valueCurrent = valueCurrent + this.countFormControlsRequiredFieldsForTotal(control);
|
||||
});
|
||||
}
|
||||
} else if (formControl instanceof FormArray) {
|
||||
formControl.controls.forEach(item => {
|
||||
valueCurrent = valueCurrent + this.countFormControlsRequiredFieldsForTotal(item);
|
||||
|
|
Loading…
Reference in New Issue