Rename component selectors to use prefix "rd"
[portal/ric-dashboard.git] / webapp-frontend / src / app / anr-xapp / anr-edit-ncr-dialog.component.ts
index 046a624..24c4811 100644 (file)
@@ -25,27 +25,26 @@ import { ErrorDialogService } from '../services/ui/error-dialog.service';
 import { ANRNeighborCellRelation, ANRNeighborCellRelationMod } from '../interfaces/anr-xapp.types';
 
 @Component({
-    selector: 'app-ncr-edit-dialog',
+    selector: 'rd-ncr-edit-dialog',
     templateUrl: './anr-edit-ncr-dialog.component.html',
     styleUrls: ['./anr-edit-ncr-dialog.component.scss']
 })
 
-export class ANREditNCRDialogComponent implements OnInit {
+export class AnrEditNcrDialogComponent implements OnInit {
 
     private ncrDialogForm: FormGroup;
 
     constructor(
-        private dialogRef: MatDialogRef<ANREditNCRDialogComponent>,
+        private dialogRef: MatDialogRef<AnrEditNcrDialogComponent>,
         private dataService: ANRXappService,
         private errorService: ErrorDialogService,
         @Inject(MAT_DIALOG_DATA) private data: ANRNeighborCellRelation) { }
 
     ngOnInit() {
-        const namePattern = /^([A-Z])+([0-9])+$/;
         this.ncrDialogForm = new FormGroup({
             servingCellNrcgi: new FormControl(this.data.servingCellNrcgi), // readonly
             neighborCellNrpci: new FormControl(this.data.neighborCellNrpci), // readonly
-            neighborCellNrcgi: new FormControl(this.data.neighborCellNrcgi, [Validators.required, Validators.pattern(namePattern)]),
+            neighborCellNrcgi: new FormControl(this.data.neighborCellNrcgi, [Validators.required]),
             flagNoHo: new FormControl(this.data.flagNoHo),
             flagNoXn: new FormControl(this.data.flagNoXn),
             flagNoRemove: new FormControl(this.data.flagNoRemove)