Create and edit characteristics

This commit is contained in:
Matthew Dillon 2015-09-08 10:37:48 -07:00
parent fb296340c3
commit de8ac653f6
14 changed files with 180 additions and 1 deletions

View file

@ -1,6 +1,10 @@
import Ember from 'ember';
export default Ember.Component.extend({
measurementsPresent: function() {
return this.get('model.measurements.length') > 0;
}.property('model.measurements'),
measurementsTable: function() {
let measurements = this.get('model.measurements');
let table = [];

View file

@ -1,3 +1,4 @@
{{#if measurementsPresent}}
<table class="flakes-table">
<thead>
<tr>
@ -24,3 +25,6 @@
{{/each}}
</tbody>
</table>
{{else}}
No measurements on record.
{{/if}}