no success
This commit is contained in:
@@ -9,7 +9,9 @@ App.IndexController = Ember.Controller.extend
|
||||
active_lists: Ember.computed 'lists.@each.state', 'globals.active_section.id', 'lists.@each.table', -> # table needed for when list changes table
|
||||
@get('orders') # trigger orders, otherwise observers are not initialized/triggered (active_orders)
|
||||
if section_id = @get('globals.active_section.id')
|
||||
lists = @get('lists').filter (l)=>( l.get('table.section.id') == section_id && l.get('state') == 'active' )
|
||||
lists = @get('lists').filter (list) =>
|
||||
return false unless list.get('state') is 'active'
|
||||
list.get('table.section.id') is section_id
|
||||
else
|
||||
lists = @get('lists').filterBy('state', 'active')
|
||||
lists.sortBy('created_at') # Not reversed, oldest on top, start with oldest order first, work your way down :-) Customer happyness
|
||||
|
||||
Reference in New Issue
Block a user