mirror of
https://github.com/openziti/zrok.git
synced 2025-06-03 08:35:53 +02:00
when no services
This commit is contained in:
parent
d9be87b702
commit
462e90a97f
@ -46,21 +46,23 @@ function buildGraph(overview) {
|
|||||||
draggable: true
|
draggable: true
|
||||||
});
|
});
|
||||||
id++
|
id++
|
||||||
item.services.forEach((item) => {
|
if(item.services != null) {
|
||||||
out.nodes.push({
|
item.services.forEach((item) => {
|
||||||
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: '' + id,
|
||||||
animated: true
|
target: '' + envId,
|
||||||
})
|
animated: true
|
||||||
id++
|
})
|
||||||
});
|
id++
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
return out
|
return out
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user