X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=webapp-frontend%2Fsrc%2Fapp%2Fpolicy%2Fpolicy-type%2Fpolicy-type.component.ts;h=f6c8d2a19b6b594c97402d80e76d6b6d89d15aaa;hb=refs%2Fchanges%2F71%2F6071%2F2;hp=72714198ae8897abb2f1108414c716eb263af093;hpb=258f12c79d0a1ad151d8717dfb06ea77783e84ca;p=portal%2Fnonrtric-controlpanel.git 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 --- 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=================================== */ -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"; +import { PolicyService } from "@services/policy/policy.service"; import "@policy/policy-control.component"; class PolicyTypeInfo { @@ -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() {