X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=webapp-frontend%2Fsrc%2Fapp%2Fpolicy%2Fpolicy-control.component.ts;h=f8b75c31e997f55f005b935e2e8f8bdcd9c48225;hb=bf404f832241494839f43ad33e12ceac24625451;hp=feb4cfb6f6e6adf2af13d8cfc88fe77ec6e96f9c;hpb=3e97951c714e9bef83a8de56060c56f73503231a;p=portal%2Fnonrtric-controlpanel.git diff --git a/webapp-frontend/src/app/policy/policy-control.component.ts b/webapp-frontend/src/app/policy/policy-control.component.ts index feb4cfb..f8b75c3 100644 --- a/webapp-frontend/src/app/policy/policy-control.component.ts +++ b/webapp-frontend/src/app/policy/policy-control.component.ts @@ -21,7 +21,6 @@ import { Component, OnInit } from "@angular/core"; import { PolicyTypes } from "@interfaces/policy.types"; import { PolicyService } from "@services/policy/policy.service"; -import { PolicyTypeComponent } from "./policy-type/policy-type.component" @Component({ selector: "nrcp-policy-control", @@ -31,10 +30,9 @@ import { PolicyTypeComponent } from "./policy-type/policy-type.component" export class PolicyControlComponent implements OnInit { policyTypeIds = []; - ptComponent: PolicyTypeComponent; + minimiseTrigger: boolean = false; constructor(private policyService: PolicyService) { - this.ptComponent = new PolicyTypeComponent(policyService); } ngOnInit() { @@ -44,7 +42,7 @@ export class PolicyControlComponent implements OnInit { refreshTables() { this.policyService.getPolicyTypes().subscribe((policyType: PolicyTypes) => { this.policyTypeIds = policyType.policytype_ids.sort(); + this.minimiseTrigger = !this.minimiseTrigger; }); - this.ptComponent.toggleVisible(); } }