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