mirror of
https://github.com/openziti/zrok.git
synced 2024-11-29 19:43:26 +01:00
only show active services
This commit is contained in:
parent
462e90a97f
commit
9002513774
@ -48,19 +48,21 @@ function buildGraph(overview) {
|
|||||||
id++
|
id++
|
||||||
if(item.services != null) {
|
if(item.services != null) {
|
||||||
item.services.forEach((item) => {
|
item.services.forEach((item) => {
|
||||||
out.nodes.push({
|
if(item.active) {
|
||||||
id: '' + id,
|
out.nodes.push({
|
||||||
data: {label: 'Service: ' + item.zitiServiceId},
|
id: '' + id,
|
||||||
position: {x: (id * 25), y: 0},
|
data: {label: 'Service: ' + item.zitiServiceId},
|
||||||
draggable: true
|
position: {x: (id * 25), y: 0},
|
||||||
})
|
draggable: true
|
||||||
out.edges.push({
|
})
|
||||||
id: 'e' + envId + '-' + id,
|
out.edges.push({
|
||||||
source: '' + id,
|
id: 'e' + envId + '-' + id,
|
||||||
target: '' + envId,
|
source: '' + envId,
|
||||||
animated: true
|
target: '' + id,
|
||||||
})
|
animated: true
|
||||||
id++
|
})
|
||||||
|
id++
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user