Skip to content
Snippets Groups Projects
Commit 92272d87 authored by Xaver Maierhofer's avatar Xaver Maierhofer Committed by Xaver Maierhofer
Browse files

[TASK] Switch stats and neighbours in node infobox

Images has no fixed height and this avoids jumping neighbours list.
parent 39f40a3d
No related branches found
No related tags found
No related merge requests found
...@@ -248,15 +248,6 @@ define(['sorttable', 'virtual-dom', 'chroma-js', 'moment', 'helper'], ...@@ -248,15 +248,6 @@ define(['sorttable', 'virtual-dom', 'chroma-js', 'moment', 'helper'],
el.appendChild(attributes); el.appendChild(attributes);
if (config.nodeInfos) {
config.nodeInfos.forEach(function (nodeInfo) {
var h4 = document.createElement('h4');
h4.textContent = nodeInfo.name;
el.appendChild(h4);
el.appendChild(showStatImg(nodeInfo, d));
});
}
if (d.neighbours.length > 0) { if (d.neighbours.length > 0) {
var h3 = document.createElement('h3'); var h3 = document.createElement('h3');
h3.textContent = _.t('node.link', d.neighbours.length) + '(' + d.neighbours.length + ')'; h3.textContent = _.t('node.link', d.neighbours.length) + '(' + d.neighbours.length + ')';
...@@ -301,5 +292,14 @@ define(['sorttable', 'virtual-dom', 'chroma-js', 'moment', 'helper'], ...@@ -301,5 +292,14 @@ define(['sorttable', 'virtual-dom', 'chroma-js', 'moment', 'helper'],
el.appendChild(table.el); el.appendChild(table.el);
} }
if (config.nodeInfos) {
config.nodeInfos.forEach(function (nodeInfo) {
var h4 = document.createElement('h4');
h4.textContent = nodeInfo.name;
el.appendChild(h4);
el.appendChild(showStatImg(nodeInfo, d));
});
}
}; };
}); });
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment