From: Mike Taylor Date: Mon, 19 Jan 2015 11:57:35 +0000 (+0000) Subject: Last part of MKWS-352. X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=c4d61cbf6b79b6dcf958aa03bf1c18b8f536d3cb;p=mkws-moved-to-github.git Last part of MKWS-352. MKWS "targets" widget now use team.targetName() to emit the displayName when known, falling back to the old behaviour of using the ID when that is not known (because we have yet to get back a targets facet that includes this target). --- diff --git a/src/mkws-widget-main.js b/src/mkws-widget-main.js index 4a1d23b..09565ac 100644 --- a/src/mkws-widget-main.js +++ b/src/mkws-widget-main.js @@ -19,7 +19,7 @@ mkws.registerWidgetType('targets', function() { var cleandata = []; for (var i = 0; i < data.length; i++) { var cur = {}; - cur.id = data[i].id; + cur.id = that.team.targetName(data[i].id); cur.hits = data[i].hits; cur.diagnostic = data[i].diagnostic; cur.message = data[i].message;