X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=webapp-frontend%2Fsrc%2Fapp%2Fpolicy%2Ftyped-policy-editor%2Ftyped-policy-editor.component.ts;h=5a99e39ec410563598c683d59460f586832fcf5f;hb=refs%2Fchanges%2F46%2F5746%2F1;hp=d05c78ffc613758c8b8bce4190c274dd93cb79f8;hpb=b3f060ed6175d6dab20e16f51cb96a8ed02a6fc2;p=portal%2Fnonrtric-controlpanel.git diff --git a/webapp-frontend/src/app/policy/typed-policy-editor/typed-policy-editor.component.ts b/webapp-frontend/src/app/policy/typed-policy-editor/typed-policy-editor.component.ts index d05c78f..5a99e39 100644 --- a/webapp-frontend/src/app/policy/typed-policy-editor/typed-policy-editor.component.ts +++ b/webapp-frontend/src/app/policy/typed-policy-editor/typed-policy-editor.component.ts @@ -19,7 +19,7 @@ // import { animate, state, style, transition, trigger } from '@angular/animations'; -import { ChangeDetectorRef, Component, Input, OnInit } from '@angular/core'; +import { Component, Input, OnInit } from '@angular/core'; import { JsonPointer } from 'angular6-json-schema-form'; @Component({ @@ -65,8 +65,7 @@ export class TypedPolicyEditorComponent implements OnInit { formIsValid: boolean = false; formValidationErrors: any; - constructor( - private cdr: ChangeDetectorRef) { + constructor() { this.formActive = false; } @@ -74,10 +73,6 @@ export class TypedPolicyEditorComponent implements OnInit { this.formActive = true; } - ngAfterViewInit() { - this.cdr.detectChanges(); - } - public onChanges(formData: any) { this.liveFormData = formData; }