Make only one query to jobs
This commit is contained in:
parent
048e7737ea
commit
830211444b
|
@ -117,7 +117,7 @@ var Controller = Ember.Controller.extend({
|
||||||
|
|
||||||
queuedJobs: function() {
|
queuedJobs: function() {
|
||||||
var result;
|
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;
|
return ['created'].indexOf(job.get('state')) !== -1;
|
||||||
});
|
});
|
||||||
result.set('isLoaded', false);
|
result.set('isLoaded', false);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user