summaryrefslogtreecommitdiffstats
path: root/ui-react/src/components/loop_viewer/svg/LoopComponentConverter.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui-react/src/components/loop_viewer/svg/LoopComponentConverter.js')
-rw-r--r--ui-react/src/components/loop_viewer/svg/LoopComponentConverter.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/ui-react/src/components/loop_viewer/svg/LoopComponentConverter.js b/ui-react/src/components/loop_viewer/svg/LoopComponentConverter.js
index a409d2cd0..5b0dc1e01 100644
--- a/ui-react/src/components/loop_viewer/svg/LoopComponentConverter.js
+++ b/ui-react/src/components/loop_viewer/svg/LoopComponentConverter.js
@@ -4,15 +4,18 @@ export default class LoopComponentConverter {
var componentsMap = new Map([]);
if (typeof (loopCache.getMicroServicePolicies()) !== "undefined") {
loopCache.getMicroServicePolicies().forEach(ms => {
- componentsMap.set(ms.name, "/configurationPolicyModal/"+ms.name);
+ componentsMap.set(ms.name, "/policyModal/MICRO-SERVICE-POLICY/"+ms.name);
})
}
if (typeof (loopCache.getOperationalPolicies()) !== "undefined") {
loopCache.getOperationalPolicies().forEach(op => {
- componentsMap.set(op.name, "/operationalPolicyModal");
+ if (op.name.includes("legacy")) {
+ componentsMap.set(op.name,"/operationalPolicyModal");
+ } else {
+ componentsMap.set(op.name, "/policyModal/OPERATIONAL-POLICY/"+op.name);
+ }
})
}
- componentsMap.set("OperationalPolicy","/operationalPolicyModal");
return componentsMap;
}
}