Try computed properties
This commit is contained in:
parent
ab2a169114
commit
2bf7534ec4
3 changed files with 16 additions and 6 deletions
|
@ -10,6 +10,7 @@
|
|||
</div>
|
||||
|
||||
{{#if isLoading}}
|
||||
{{!-- This doesn't work yet --}}
|
||||
{{loading-panel}}
|
||||
{{else}}
|
||||
<table class="flakes-table">
|
||||
|
@ -22,7 +23,11 @@
|
|||
</thead>
|
||||
<tbody>
|
||||
{{#each measurements as |measurement|}}
|
||||
{{measurement-index-row data=measurement}}
|
||||
<tr>
|
||||
<td>{{{measurement.strain.fullNameMU}}}</td>
|
||||
<td>{{measurement.characteristic.characteristicName}}</td>
|
||||
<td>{{{measurement.value}}}</td>
|
||||
</tr>
|
||||
{{/each}}
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<td>
|
||||
{{#link-to 'strains.show' data.id classBinding="data.typeStrain:type-strain"}}
|
||||
{{scientific-name strain=data}}
|
||||
{{{data.fullNameMU}}}
|
||||
{{/link-to}}
|
||||
</td>
|
||||
<td>
|
||||
|
|
Reference in a new issue