rearrange job filtering in sidebar
This commit is contained in:
parent
2b84d5228b
commit
c0917d2128
|
@ -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 =>
|
||||
|
|
Loading…
Reference in New Issue
Block a user