mirror of
https://github.com/openziti/zrok.git
synced 2025-06-01 15:48:21 +02:00
when no services
This commit is contained in:
parent
d9be87b702
commit
462e90a97f
@ -46,21 +46,23 @@ function buildGraph(overview) {
|
||||
draggable: true
|
||||
});
|
||||
id++
|
||||
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.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++
|
||||
});
|
||||
}
|
||||
});
|
||||
return out
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user