diff --git a/projects/player/src/app/components/elements/compound-group-element/compound-group-element.component.html b/projects/player/src/app/components/elements/compound-group-element/compound-group-element.component.html index c33dec9f33680122ab0cbd1ed22ca3724a7af0ff..7a553cebcdac56fc342d06f06a3e4b6e1561c00e 100644 --- a/projects/player/src/app/components/elements/compound-group-element/compound-group-element.component.html +++ b/projects/player/src/app/components/elements/compound-group-element/compound-group-element.component.html @@ -5,14 +5,14 @@ #elementComponent [parentForm]="form" [elementModel]="elementModel | cast: ClozeElement" - (childrenAdded)="onChildrenAdded($event)"> + (childrenAdded)="registerCompoundChildren($event)"> </aspect-cloze> <aspect-likert *ngIf="elementModel.type === 'likert'" #elementComponent [parentForm]="form" [elementModel]="elementModel | cast: LikertElement" - (childrenAdded)="onChildrenAdded($event)"> + (childrenAdded)="registerCompoundChildren($event)"> </aspect-likert> </form> diff --git a/projects/player/src/app/components/elements/compound-group-element/compound-group-element.component.ts b/projects/player/src/app/components/elements/compound-group-element/compound-group-element.component.ts index 46a5d11184772c061c1f2e61b4c00938470a4b8e..f8454041b9dd99b58cc0f4c05514536fd333cbdc 100644 --- a/projects/player/src/app/components/elements/compound-group-element/compound-group-element.component.ts +++ b/projects/player/src/app/components/elements/compound-group-element/compound-group-element.component.ts @@ -48,7 +48,7 @@ export class CompoundGroupElementComponent extends ElementFormGroupDirective imp this.createForm((this.elementModel as CompoundElement).getChildElements() as InputElement[]); } - onChildrenAdded(children: ElementComponent[]): void { + registerCompoundChildren(children: ElementComponent[]): void { children.forEach(child => { const childModel = child.elementModel as InputElement; this.registerAtUnitStateService(