Code Review
/
portal
/
nonrtric-controlpanel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
First version of common policy edit dialog
[portal/nonrtric-controlpanel.git]
/
webapp-frontend
/
src
/
app
/
policy
/
typed-policy-editor
/
typed-policy-editor.component.ts
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
(file)
--- 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 { animate, state, style, transition, trigger } from '@angular/animations';
-import { C
hangeDetectorRef, C
omponent, Input, OnInit } from '@angular/core';
+import { Component, Input, OnInit } from '@angular/core';
import { JsonPointer } from 'angular6-json-schema-form';
@Component({
import { JsonPointer } from 'angular6-json-schema-form';
@Component({
@@
-59,24
+59,13
@@
export class TypedPolicyEditorComponent implements OnInit {
json: false,
schema: false
};
json: false,
schema: false
};
- formActive: boolean = false;
- jsonFormStatusMessage: string = 'Loading form...';
liveFormData: any = {};
formIsValid: boolean = false;
formValidationErrors: any;
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;
public onChanges(formData: any) {
this.liveFormData = formData;