diff --git a/app/pods/components/measurement-search-table/component.js b/app/pods/components/measurement-search-table/component.js index 0a941ee..2d618ef 100644 --- a/app/pods/components/measurement-search-table/component.js +++ b/app/pods/components/measurement-search-table/component.js @@ -1,18 +1,15 @@ import Ember from 'ember'; export default Ember.Component.extend({ - isLoading: false, actions: { search: function() { - this.set('isLoading', true); let strain = this.get('selectedStrain'); let characteristic = this.get('selectedCharacteristic'); if ((strain === 'all') && (characteristic === 'all')) { this.store.findAll('measurement').then((measurements)=>{ this.set('measurements', measurements); }); - this.set('isLoading', false); - return false; + return; } let search = {}; if (strain !== 'all') { @@ -24,8 +21,6 @@ export default Ember.Component.extend({ this.store.find('measurement', search).then((measurements)=>{ this.set('measurements', measurements); }); - this.set('isLoading', false); - return false; } }, }); diff --git a/app/pods/components/measurement-search-table/template.hbs b/app/pods/components/measurement-search-table/template.hbs index 93d8ab8..601ad48 100644 --- a/app/pods/components/measurement-search-table/template.hbs +++ b/app/pods/components/measurement-search-table/template.hbs @@ -10,7 +10,7 @@ {{#if isLoading}} - {{!-- This doesn't work yet --}} + {{!-- This doesn't work yet, something is blocking --}} {{loading-panel}} {{else}}