[BUGFIX] Remove link direction

This commit is contained in:
Martin Geno 2017-10-29 12:36:57 +01:00 committed by Xaver Maierhofer
parent e0630808e3
commit 13eacf5fa8
No known key found for this signature in database
GPG Key ID: 7FDCE23FD2EC9FE8
3 changed files with 4 additions and 9 deletions

View File

@ -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' } }));
}

View File

@ -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 = [];

View File

@ -53,7 +53,7 @@
th,
td {
&:first-child {
width: 50px;
width: 25px;
}
}
}