X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=webapp-frontend%2Fsrc%2Fapp%2Fpolicy%2Fpolicy-instance-dialog%2Fpolicy-instance-dialog.component.ts;h=12b2f949f05ca552574fc9f1a317d67f53b86817;hb=refs%2Fchanges%2F46%2F5746%2F1;hp=3c2ea2b0da28c0e13d963e3807d8ab074e5ce13a;hpb=b3f060ed6175d6dab20e16f51cb96a8ed02a6fc2;p=portal%2Fnonrtric-controlpanel.git diff --git a/webapp-frontend/src/app/policy/policy-instance-dialog/policy-instance-dialog.component.ts b/webapp-frontend/src/app/policy/policy-instance-dialog/policy-instance-dialog.component.ts index 3c2ea2b..12b2f94 100644 --- a/webapp-frontend/src/app/policy/policy-instance-dialog/policy-instance-dialog.component.ts +++ b/webapp-frontend/src/app/policy/policy-instance-dialog/policy-instance-dialog.component.ts @@ -17,7 +17,7 @@ * limitations under the License. * ========================LICENSE_END=================================== */ -import { AfterViewInit, Component, Inject, OnInit, ViewChild } from '@angular/core'; +import { Component, Inject, OnInit, ViewChild } from '@angular/core'; import { MatDialogConfig, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog'; import * as uuid from 'uuid'; import { CreatePolicyInstance, PolicyInstance, PolicyTypeSchema } from '../../interfaces/policy.types'; @@ -27,7 +27,6 @@ import { NotificationService } from './../../services/ui/notification.service'; import { UiService } from '../../services/ui/ui.service'; import { HttpErrorResponse } from '@angular/common/http'; import { FormGroup, FormControl, Validators } from '@angular/forms'; -import { ChangeDetectorRef } from '@angular/core'; import { Ric, Rics } from '../../interfaces/ric'; import { TypedPolicyEditorComponent } from '../typed-policy-editor/typed-policy-editor.component'; @@ -37,7 +36,7 @@ import { TypedPolicyEditorComponent } from '../typed-policy-editor/typed-policy- templateUrl: './policy-instance-dialog.component.html', styleUrls: ['./policy-instance-dialog.component.scss'] }) -export class PolicyInstanceDialogComponent implements OnInit, AfterViewInit { +export class PolicyInstanceDialogComponent implements OnInit { @ViewChild(TypedPolicyEditorComponent) policyEditor: TypedPolicyEditorComponent; instanceForm: FormGroup; @@ -63,7 +62,6 @@ export class PolicyInstanceDialogComponent implements OnInit, AfterViewInit { } constructor( - private cdr: ChangeDetectorRef, private dataService: PolicyService, private errorService: ErrorDialogService, private notificationService: NotificationService, @@ -90,10 +88,6 @@ export class PolicyInstanceDialogComponent implements OnInit, AfterViewInit { } } - ngAfterViewInit() { - this.cdr.detectChanges(); - } - get ricSelector() { return this.instanceForm.get('ricSelector'); } onSubmit() {