Merge branch 'master' into clostridium
* master: Compare - link to chars
This commit is contained in:
		
						commit
						ab964bbca1
					
				
					 2 changed files with 11 additions and 4 deletions
				
			
		| 
						 | 
					@ -14,8 +14,16 @@
 | 
				
			||||||
  <tbody>
 | 
					  <tbody>
 | 
				
			||||||
    {{#each characteristics as |row|}}
 | 
					    {{#each characteristics as |row|}}
 | 
				
			||||||
      <tr>
 | 
					      <tr>
 | 
				
			||||||
        {{#each row key="@index" as |col|}}
 | 
					        {{#each row key="@index" as |col index|}}
 | 
				
			||||||
          <td>{{col}}</td>
 | 
					          <td>
 | 
				
			||||||
 | 
					            {{#unless index}}
 | 
				
			||||||
 | 
					              {{#link-to 'protected.characteristics.show' col.id}}
 | 
				
			||||||
 | 
					                {{col.characteristicName}}
 | 
				
			||||||
 | 
					              {{/link-to}}
 | 
				
			||||||
 | 
					            {{else}}
 | 
				
			||||||
 | 
					              {{col}}
 | 
				
			||||||
 | 
					            {{/unless}}
 | 
				
			||||||
 | 
					          </td>
 | 
				
			||||||
        {{/each}}
 | 
					        {{/each}}
 | 
				
			||||||
      </tr>
 | 
					      </tr>
 | 
				
			||||||
    {{/each}}
 | 
					    {{/each}}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -38,8 +38,7 @@ export default Route.extend({
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  setupController: function(controller, model) {
 | 
					  setupController: function(controller, model) {
 | 
				
			||||||
    model.forEach((m, i) => {
 | 
					    model.forEach((m, i) => {
 | 
				
			||||||
      const c = this.store.peekRecord('characteristic', m[0]);
 | 
					      model[i][0] = this.store.peekRecord('characteristic', m[0]);
 | 
				
			||||||
      model[i][0] = c.get('characteristicName');
 | 
					 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const compare = this.controllerFor('protected.compare');
 | 
					    const compare = this.controllerFor('protected.compare');
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue