Make only one query to jobs

This commit is contained in:
Piotr Sarnacki 2015-12-10 11:30:35 +01:00
parent 048e7737ea
commit 830211444b

View File

@ -117,7 +117,7 @@ var Controller = Ember.Controller.extend({
queuedJobs: function() {
var result;
result = this.get('store').filter('job', {}, function(job) {
result = this.get('store').filter('job', function(job) {
return ['created'].indexOf(job.get('state')) !== -1;
});
result.set('isLoaded', false);