rearrange job filtering in sidebar

This commit is contained in:
Lisa P 2015-10-06 21:40:44 +02:00
parent 2b84d5228b
commit c0917d2128

View File

@ -53,7 +53,7 @@ Controller = Ember.Controller.extend
runningJobs: (->
# TODO: this should also query for received jobs
result = @store.filter('job', {}, (job) ->
['started', 'received'].indexOf(job.get('state')) != -1
['queued', 'started', 'received'].indexOf(job.get('state')) != -1
)
result.set('isLoaded', false)
result.then =>
@ -63,7 +63,7 @@ Controller = Ember.Controller.extend
queuedJobs: (->
result = @get('store').filter('job', {}, (job) ->
['created', 'queued'].indexOf(job.get('state')) != -1
['created'].indexOf(job.get('state')) != -1
)
result.set('isLoaded', false)
result.then =>