X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=webapp-frontend%2Fsrc%2Fapp%2Fac-xapp%2Fac-xapp.component.ts;h=f7c360cc96b48e7447b1417ec043a4759e0d324f;hb=d37febb68a8964b879bdc92bc5df9ab066455b0e;hp=9b9f23c74ea0a92400db872dca9e7d2d22cc5383;hpb=86035ef1f9d5b699146ad5dcd127ed30f0898077;p=portal%2Fric-dashboard.git diff --git a/webapp-frontend/src/app/ac-xapp/ac-xapp.component.ts b/webapp-frontend/src/app/ac-xapp/ac-xapp.component.ts index 9b9f23c7..f7c360cc 100644 --- a/webapp-frontend/src/app/ac-xapp/ac-xapp.component.ts +++ b/webapp-frontend/src/app/ac-xapp/ac-xapp.component.ts @@ -48,10 +48,11 @@ export class AcXappComponent implements OnInit { const triggerPattern = /^([0-9]+)$/; // No way to fetch current settings via A1 at present this.acForm = new FormGroup({ + // Names must match the ACAdmissionIntervalControl interface enforce: new FormControl(true, [Validators.required]), - windowLength: new FormControl('', [Validators.required, Validators.pattern(windowLengthPattern)]), - blockingRate: new FormControl('', [Validators.required, Validators.pattern(blockingRatePattern)]), - triggerThreshold: new FormControl('', [Validators.required, Validators.pattern(triggerPattern)]) + window_length: new FormControl('', [Validators.required, Validators.pattern(windowLengthPattern)]), + blocking_rate: new FormControl('', [Validators.required, Validators.pattern(blockingRatePattern)]), + trigger_threshold: new FormControl('', [Validators.required, Validators.pattern(triggerPattern)]) }); this.acXappService.getVersion().subscribe((res: string) => this.acVersion = res); }