First version of common policy edit dialog
[portal/nonrtric-controlpanel.git] / webapp-frontend / src / app / policy / typed-policy-editor / typed-policy-editor.component.ts
index d05c78f..46b51bf 100644 (file)
@@ -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;