From c407f2e33462b6cfe8742af97d2111c1a6bdf85c Mon Sep 17 00:00:00 2001 From: Geno Date: Fri, 3 Nov 2017 20:44:13 +0100 Subject: [PATCH] [BUGFIX] Show contact --- lib/infobox/node.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/infobox/node.js b/lib/infobox/node.js index 97b0660..b08c8f9 100644 --- a/lib/infobox/node.js +++ b/lib/infobox/node.js @@ -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.gateway', d.is_gateway ? 'ja' : undefined)); children.push(helper.attributeEntry(V, 'node.coordinates', showGeoURI(d))); - - if (config.nodeInfobox && config.nodeInfobox.contact) { - children.push(helper.attributeEntry(V, 'node.contact', helper.dictGet(d, ['owner', 'contact']))); - } - + children.push(helper.attributeEntry(V, 'node.contact', d.owner)); 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.firmware', showFirmware(d)));