Stop loading chars in measurements-table
This commit is contained in:
parent
fbfbdf19d1
commit
ba15af411e
8 changed files with 9 additions and 10 deletions
|
@ -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']();
|
||||
|
|
|
@ -43,6 +43,7 @@
|
|||
{{
|
||||
protected/strains/measurements-table-row
|
||||
row=measurement
|
||||
allCharacteristics=allCharacteristics
|
||||
canEdit=canEdit
|
||||
}}
|
||||
{{/each}}
|
||||
|
|
Reference in a new issue