Merge "Update Read the Docs for NonRtRic Control Panel"
[portal/nonrtric-controlpanel.git] / webapp-frontend / src / app / policy / policy-type / policy-type.component.ts
index 7271419..3e8a2ee 100644 (file)
@@ -18,7 +18,7 @@
  * ========================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 { PolicyService } from "@app/services/policy/policy.service";
@@ -52,8 +52,10 @@ export class PolicyTypeComponent implements OnInit, OnChanges {
     this.isVisible.next(false);
   }
 
-  ngOnChanges(): void {
-    this.isVisible.next(false);
+  ngOnChanges(changes: SimpleChanges): void {
+    if(changes['minimiseTrigger']){
+      this.isVisible.next(false);
+    }
   }
 
   public loadTypeInfo() {