only show active services

This commit is contained in:
Michael Quigley 2022-08-04 11:12:54 -04:00
parent 462e90a97f
commit 9002513774
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62

View File

@ -48,19 +48,21 @@ function buildGraph(overview) {
id++
if(item.services != null) {
item.services.forEach((item) => {
out.nodes.push({
id: '' + id,
data: {label: 'Service: ' + item.zitiServiceId},
position: {x: (id * 25), y: 0},
draggable: true
})
out.edges.push({
id: 'e' + envId + '-' + id,
source: '' + id,
target: '' + envId,
animated: true
})
id++
if(item.active) {
out.nodes.push({
id: '' + id,
data: {label: 'Service: ' + item.zitiServiceId},
position: {x: (id * 25), y: 0},
draggable: true
})
out.edges.push({
id: 'e' + envId + '-' + id,
source: '' + envId,
target: '' + id,
animated: true
})
id++
}
});
}
});