Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Policy-agent skeleton"
[nonrtric.git]
/
dashboard
/
webapp-frontend
/
src
/
app
/
policy-control
/
policy-control.component.ts
diff --git
a/dashboard/webapp-frontend/src/app/policy-control/policy-control.component.ts
b/dashboard/webapp-frontend/src/app/policy-control/policy-control.component.ts
index
d57019f
..
a81fb2e
100644
(file)
--- a/
dashboard/webapp-frontend/src/app/policy-control/policy-control.component.ts
+++ b/
dashboard/webapp-frontend/src/app/policy-control/policy-control.component.ts
@@
-91,11
+91,8
@@
export class PolicyControlComponent implements OnInit {
}
toggleListInstances(policyType: PolicyType): void {
}
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());
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 {
}
getPolicyTypeInfo(policyType: PolicyType): PolicyTypeInfo {
@@
-107,13
+104,8
@@
export class PolicyControlComponent implements OnInit {
return info;
}
return info;
}
- getDescription(policyType: PolicyType): string {
- return JSON.parse(policyType.schema).description;
- }
-
getName(policyType: PolicyType): string {
getName(policyType: PolicyType): string {
- const title = JSON.parse(policyType.schema).title;
- if (title) { return title; }
+ if (policyType.schemaObject.title) { return policyType.schemaObject.title; }
return policyType.name;
}
return policyType.name;
}