Skip to content
Snippets Groups Projects
Unverified Commit 13eacf5f authored by Martin Geno's avatar Martin Geno Committed by Xaver Maierhofer
Browse files

[BUGFIX] Remove link direction

parent e0630808
No related branches found
No related tags found
No related merge requests found
......@@ -187,7 +187,6 @@ define(['sorttable', 'snabbdom', 'd3-interpolate', 'moment', 'helper'],
return function (config, el, router, d, linkScale, gateways) {
function renderNeighbourRow(n) {
var icons = [];
icons.push(V.h('span', { props: { className: n.incoming ? 'ion-arrow-left-c' : 'ion-arrow-right-c' } }));
if (helper.hasLocation(n.node)) {
icons.push(V.h('span', { props: { className: 'ion-location' } }));
}
......
......@@ -37,8 +37,6 @@ define(['moment', 'utils/router', 'leaflet', 'gui', 'helper', 'utils/language'],
});
links.forEach(function (d) {
var ids;
d.source = nodes.find(function (a) {
return a.node_id === d.source;
});
......@@ -47,11 +45,9 @@ define(['moment', 'utils/router', 'leaflet', 'gui', 'helper', 'utils/language'],
return a.node_id === d.target;
});
ids = [d.source.node_id, d.target.node_id];
d.source.neighbours.push({ node: d.target, link: d, incoming: false });
d.target.neighbours.push({ node: d.source, link: d, incoming: true });
d.id = ids.join('-');
d.id = [d.source.node_id, d.target.node_id].join('-');
d.source.neighbours.push({ node: d.target, link: d });
d.target.neighbours.push({ node: d.source, link: d });
try {
d.latlngs = [];
......
......@@ -53,7 +53,7 @@
th,
td {
&:first-child {
width: 50px;
width: 25px;
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment