service -> share (#144)

This commit is contained in:
Michael Quigley
2023-01-04 14:42:58 -05:00
parent 74b9786a61
commit 3943aef40a
20 changed files with 111 additions and 116 deletions
+9 -9
View File
@@ -43,21 +43,21 @@ export const mergeGraph = (oldGraph, user, newOverview) => {
color: "#777"
});
if(env.shares) {
env.shares.forEach(svc => {
let svcLabel = svc.token;
if(svc.backendProxyEndpoint !== "") {
svcLabel = svc.backendProxyEndpoint;
env.shares.forEach(shr => {
let shrLabel = shr.token;
if(shr.backendProxyEndpoint !== "") {
shrLabel = shr.backendProxyEndpoint;
}
let svcNode = {
id: svc.token,
label: svcLabel,
let shrNode = {
id: shr.token,
label: shrLabel,
type: "share",
val: 50
};
newGraph.nodes.push(svcNode);
newGraph.nodes.push(shrNode);
newGraph.links.push({
target: envNode.id,
source: svcNode.id,
source: shrNode.id,
color: "#777"
});
});