Commits
Art Lowel authored f93df688e48
104 104 | } |
105 105 | |
106 106 | private updateReorderables(shouldPropagateChanges = true): void { |
107 107 | this.zone.runOutsideAngular(() => { |
108 108 | let groups = this.model.groups.map((group, index) => [group, (this.control as any).controls[index]]); |
109 109 | groups = [groups, groups[0]]; |
110 110 | const reorderable$arr: Array<Observable<Reorderable>> = groups |
111 111 | .filter(([group, control], index) => index > 0 && hasValue((group.group[0] as any).value)) // disregard the first group, it is always empty to ensure the first field remains empty |
112 112 | .map(([group, control]: [DynamicFormArrayGroupModel, AbstractControl], index: number) => { |
113 113 | const model = group.group[0] as DynamicConcatModel; |
114 - | // console.log('model.id', model.id); |
115 - | // console.log('model.value', model.value); |
116 114 | let formFieldMetadataValue: FormFieldMetadataValueObject = model.value as FormFieldMetadataValueObject; |
117 - | // console.log('formFieldMetadataValue', formFieldMetadataValue); |
118 115 | if (hasValue(formFieldMetadataValue)) { |
119 116 | const metadataValue = Object.assign(new MetadataValue(), { |
120 117 | value: formFieldMetadataValue.display, |
121 118 | language: formFieldMetadataValue.language, |
122 119 | place: formFieldMetadataValue.place, |
123 120 | authority: formFieldMetadataValue.authority, |
124 121 | confidence: formFieldMetadataValue.confidence |
125 122 | }); |
126 123 | if (metadataValue.isVirtual) { |
127 124 | return this.relationshipService.findById(metadataValue.virtualValue, followLink('leftItem')) |