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=refs%2Fchanges%2F66%2F766%2F1;hp=a0b4327d2a179260b277fc5dfa82c016ec629d70;hpb=b38f759a93759fca79cec46491639c935132d577;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 a0b4327d..f7c360cc 100644 --- a/webapp-frontend/src/app/ac-xapp/ac-xapp.component.ts +++ b/webapp-frontend/src/app/ac-xapp/ac-xapp.component.ts @@ -26,7 +26,7 @@ import { ErrorDialogService } from '../services/ui/error-dialog.service'; import { NotificationService } from './../services/ui/notification.service'; @Component({ - selector: 'app-ac-xapp', + selector: 'rd-ac-xapp', templateUrl: './ac-xapp.component.html', styleUrls: ['./ac-xapp.component.scss'] }) @@ -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); }