[BUGFIX] Show contact

This commit is contained in:
Geno 2017-11-03 20:44:13 +01:00 committed by Xaver Maierhofer
parent 9a4836257f
commit c407f2e334

View File

@ -252,11 +252,7 @@ define(['sorttable', 'snabbdom', 'd3-interpolate', 'moment', 'helper'],
children.push(helper.attributeEntry(V, 'node.status', showStatus(d))); children.push(helper.attributeEntry(V, 'node.status', showStatus(d)));
children.push(helper.attributeEntry(V, 'node.gateway', d.is_gateway ? 'ja' : undefined)); children.push(helper.attributeEntry(V, 'node.gateway', d.is_gateway ? 'ja' : undefined));
children.push(helper.attributeEntry(V, 'node.coordinates', showGeoURI(d))); children.push(helper.attributeEntry(V, 'node.coordinates', showGeoURI(d)));
children.push(helper.attributeEntry(V, 'node.contact', d.owner));
if (config.nodeInfobox && config.nodeInfobox.contact) {
children.push(helper.attributeEntry(V, 'node.contact', helper.dictGet(d, ['owner', 'contact'])));
}
children.push(helper.attributeEntry(V, 'node.hardware', d.model)); children.push(helper.attributeEntry(V, 'node.hardware', d.model));
children.push(helper.attributeEntry(V, 'node.primaryMac', d.network.mac)); children.push(helper.attributeEntry(V, 'node.primaryMac', d.network.mac));
children.push(helper.attributeEntry(V, 'node.firmware', showFirmware(d))); children.push(helper.attributeEntry(V, 'node.firmware', showFirmware(d)));