diff options
author | Xue Gao <xg353y@intl.att.com> | 2019-07-19 07:44:49 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-07-19 07:44:49 +0000 |
commit | 67ef5fd2c784523c33016810835375fa2182dd78 (patch) | |
tree | 97b8deb95f1654782c1c7602931ff198fe88fad2 /ui-react/src/components/loop_viewer/svg/LoopComponentConverter.js | |
parent | d8bed32cb3f84d9cfb18332b07742701f5d57379 (diff) | |
parent | 5f6c178c3eaea6fffe7d46ca3c75dcb0ffa92755 (diff) |
Merge "Add generic svg selection"
Diffstat (limited to 'ui-react/src/components/loop_viewer/svg/LoopComponentConverter.js')
-rw-r--r-- | ui-react/src/components/loop_viewer/svg/LoopComponentConverter.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ui-react/src/components/loop_viewer/svg/LoopComponentConverter.js b/ui-react/src/components/loop_viewer/svg/LoopComponentConverter.js new file mode 100644 index 000000000..b737f3e19 --- /dev/null +++ b/ui-react/src/components/loop_viewer/svg/LoopComponentConverter.js @@ -0,0 +1,18 @@ +export default class LoopComponentConverter { + + static buildMapOfComponents(loopCache) { + var componentsMap = new Map([]); + if (typeof (loopCache.getMicroServicePolicies()) !== "undefined") { + loopCache.getMicroServicePolicies().map(ms => { + componentsMap.set(ms.name, "/configurationPolicyModal/"+ms.name); + }) + } + if (typeof (loopCache.getOperationalPolicies()) !== "undefined") { + loopCache.getOperationalPolicies().map(op => { + componentsMap.set(op.name, "/operationalPolicyModal"); + }) + } + componentsMap.set("OperationalPolicy","/operationalPolicyModal"); + return componentsMap; + } +}
\ No newline at end of file |