Stop loading chars in measurements-table

This commit is contained in:
Matthew Dillon 2015-11-10 15:49:55 -07:00
parent fbfbdf19d1
commit ba15af411e
8 changed files with 9 additions and 10 deletions

View file

@ -9,6 +9,8 @@ export default Component.extend({
allCharacteristics: null,
canEdit: false,
canAdd: false,
// Actions
"add-characteristic": null,
// Properties
@ -20,13 +22,6 @@ export default Component.extend({
return this.get('strain.measurements.length') > 0;
}),
// TODO: remove this
// fetchCharacteristics: function() {
// if (this.get('canEdit')) {
// this.store.findAll('characteristic');
// }
// }.on('didInsertElement'),
actions: {
addCharacteristic: function() {
const newChar = this.attrs['add-characteristic']();

View file

@ -43,6 +43,7 @@
{{
protected/strains/measurements-table-row
row=measurement
allCharacteristics=allCharacteristics
canEdit=canEdit
}}
{{/each}}