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
Updated Control Panel for changed ECS NBI
[portal/nonrtric-controlpanel.git]
/
webapp-frontend
/
src
/
app
/
policy
/
policy-type
/
policy-type.component.ts
diff --git
a/webapp-frontend/src/app/policy/policy-type/policy-type.component.ts
b/webapp-frontend/src/app/policy/policy-type/policy-type.component.ts
index
7271419
..
f6c8d2a
100644
(file)
--- a/
webapp-frontend/src/app/policy/policy-type/policy-type.component.ts
+++ b/
webapp-frontend/src/app/policy/policy-type/policy-type.component.ts
@@
-18,10
+18,10
@@
* ========================LICENSE_END===================================
*/
* ========================LICENSE_END===================================
*/
-import { Component, Input, OnInit, OnChanges} from "@angular/core";
+import { Component, Input, OnInit, OnChanges
, SimpleChanges
} from "@angular/core";
import { BehaviorSubject } from "rxjs";
import { PolicyType, PolicyTypeSchema } from "@interfaces/policy.types";
import { BehaviorSubject } from "rxjs";
import { PolicyType, PolicyTypeSchema } from "@interfaces/policy.types";
-import { PolicyService } from "@
app/
services/policy/policy.service";
+import { PolicyService } from "@services/policy/policy.service";
import "@policy/policy-control.component";
class PolicyTypeInfo {
import "@policy/policy-control.component";
class PolicyTypeInfo {
@@
-52,8
+52,10
@@
export class PolicyTypeComponent implements OnInit, OnChanges {
this.isVisible.next(false);
}
this.isVisible.next(false);
}
- ngOnChanges(): void {
- this.isVisible.next(false);
+ ngOnChanges(changes: SimpleChanges): void {
+ if(changes['minimiseTrigger']){
+ this.isVisible.next(false);
+ }
}
public loadTypeInfo() {
}
public loadTypeInfo() {