diff --git a/app/pods/protected/compare/results/results-table/template.hbs b/app/pods/protected/compare/results/results-table/template.hbs index c90d3bc..3ecfe46 100644 --- a/app/pods/protected/compare/results/results-table/template.hbs +++ b/app/pods/protected/compare/results/results-table/template.hbs @@ -14,8 +14,16 @@ {{#each characteristics as |row|}} - {{#each row key="@index" as |col|}} - {{col}} + {{#each row key="@index" as |col index|}} + + {{#unless index}} + {{#link-to 'protected.characteristics.show' col.id}} + {{col.characteristicName}} + {{/link-to}} + {{else}} + {{col}} + {{/unless}} + {{/each}} {{/each}} diff --git a/app/pods/protected/compare/results/route.js b/app/pods/protected/compare/results/route.js index 6848827..6085d85 100644 --- a/app/pods/protected/compare/results/route.js +++ b/app/pods/protected/compare/results/route.js @@ -38,8 +38,7 @@ export default Route.extend({ setupController: function(controller, model) { model.forEach((m, i) => { - const c = this.store.peekRecord('characteristic', m[0]); - model[i][0] = c.get('characteristicName'); + model[i][0] = this.store.peekRecord('characteristic', m[0]); }); const compare = this.controllerFor('protected.compare');