blob: b737f3e1957a72ece3373604f8f80e297f8e7583 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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;
}
}
|