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=46b51bf6cd03013ae6cadf69684c173f6047819d;hb=800ab849929561945135745ba64ac563f816f333;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..46b51bf 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({ @@ -59,24 +59,13 @@ export class TypedPolicyEditorComponent implements OnInit { json: false, schema: false }; - formActive: boolean = false; - jsonFormStatusMessage: string = 'Loading form...'; liveFormData: any = {}; formIsValid: boolean = false; formValidationErrors: any; - constructor( - private cdr: ChangeDetectorRef) { - this.formActive = false; - } - - ngOnInit(): void { - this.formActive = true; - } + constructor() {} - ngAfterViewInit() { - this.cdr.detectChanges(); - } + ngOnInit(): void {} public onChanges(formData: any) { this.liveFormData = formData;