Support of selecting RIC in dashboard
[nonrtric.git] / dashboard / webapp-frontend / src / app / policy-control / policy-control.component.ts
index 019a637..a81fb2e 100644 (file)
@@ -91,11 +91,8 @@ export class PolicyControlComponent implements OnInit {
     }
 
     toggleListInstances(policyType: PolicyType): void {
-        console.log('1toggleListInstances ' + + policyType.name + ' ' + this.getPolicyTypeInfo(policyType).isExpanded.getValue());
         const info = this.getPolicyTypeInfo(policyType);
         info.isExpanded.next(!info.isExpanded.getValue());
-        console.log('2toggleListInstances ' + + policyType.name + ' ' + this.getPolicyTypeInfo(policyType).isExpanded.getValue());
-
     }
 
     getPolicyTypeInfo(policyType: PolicyType): PolicyTypeInfo {
@@ -107,6 +104,11 @@ export class PolicyControlComponent implements OnInit {
         return info;
     }
 
+    getName(policyType: PolicyType): string {
+        if (policyType.schemaObject.title) { return policyType.schemaObject.title; }
+        return policyType.name;
+    }
+
     isInstancesShown(policyType: PolicyType): boolean {
         return this.getPolicyTypeInfo(policyType).isExpanded.getValue();
     }