From c4d61cbf6b79b6dcf958aa03bf1c18b8f536d3cb Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Mon, 19 Jan 2015 11:57:35 +0000 Subject: [PATCH] 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). --- src/mkws-widget-main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 1.7.10.4