Merge "Tweaks for Policy Control UI"
authorPatrik Buhr <patrik.buhr@est.tech>
Thu, 15 Apr 2021 09:56:15 +0000 (09:56 +0000)
committerGerrit Code Review <gerrit@o-ran-sc.org>
Thu, 15 Apr 2021 09:56:15 +0000 (09:56 +0000)
1  2 
webapp-frontend/src/app/policy/policy-instance/policy-instance.component.ts

@@@ -179,7 -179,11 +179,11 @@@ export class PolicyInstanceComponent im
      });
    }
  
-   noInstances(): number {
+   hasInstances(): boolean {
+     return this.instanceCount() > 0;
+ }
+   instanceCount(): number {
      return this.policyInstances.length;
    }
  
    deleteInstance(instance: PolicyInstance): void {
      this.confirmDialogService
        .openConfirmDialog(
 +        "Delete Policy",
          "Are you sure you want to delete this policy instance?"
        )
        .afterClosed()