aboutsummaryrefslogtreecommitdiffstats
path: root/ui-react/src/components/loop_viewer/svg/LoopComponentConverter.js
diff options
context:
space:
mode:
authorsebdet <sebastien.determe@intl.att.com>2020-02-25 15:13:31 -0800
committersebdet <sebastien.determe@intl.att.com>2020-02-26 07:25:24 -0800
commitc11160ecfdce03091917e2728f80848f4d8feb95 (patch)
tree21554251f47912e5d2cb35152a0ac42adaa02575 /ui-react/src/components/loop_viewer/svg/LoopComponentConverter.js
parent3a26471260e56f7a87533f0147fc63530d6ea08c (diff)
Add new dialog for policy
Add a new dialog component for tosca based policy, config/op should use that dialog now. Issue-ID: CLAMP-653 Change-Id: I57523bc2d4bfbf5ca5a3acf5c59823df06fd4cd9 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
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 a409d2cd..5b0dc1e0 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;
}
}