clean up description editor progress bar

This commit is contained in:
Sofia Papacharalampous 2024-04-29 14:24:12 +03:00
parent b9f1805bb2
commit aa5235e950
1 changed files with 4 additions and 2 deletions

View File

@ -66,7 +66,7 @@ export class FormProgressIndicationComponent extends BaseComponent implements On
return valueCurrent; return valueCurrent;
} }
countRequiredFieldsByFieldset(ordinal: number, fieldsFormGroup: UntypedFormGroup, filterValid: boolean = false): number { countRequiredFieldsByFieldset(ordinal: number, fieldsFormGroup: UntypedFormGroup, filterValid: boolean = false): number {
let fieldsCount: number = 0; let fieldsCount: number = 0;
const fieldNames = Object.keys(fieldsFormGroup.controls); const fieldNames = Object.keys(fieldsFormGroup.controls);
for(let item of fieldNames) { for(let item of fieldNames) {
@ -207,7 +207,9 @@ export class FormProgressIndicationComponent extends BaseComponent implements On
if (validator && validator.required) { if (validator && validator.required) {
return true; return true;
} }
} else { return false } }
return false;
} }
controlEnabled(formControl: AbstractControl) { controlEnabled(formControl: AbstractControl) {