Fix list table dependency on supplier dashboard
This commit is contained in:
@@ -5,7 +5,7 @@ App.IndexController = Ember.Controller.extend
|
||||
orders: Ember.computed -> @store.peekAll('order')
|
||||
sections: (-> @store.peekAll('section')).property()
|
||||
active_section: Ember.computed.alias 'globals.active_section'
|
||||
active_lists: Ember.computed 'lists.@each.state', 'active_section.id', ->
|
||||
active_lists: Ember.computed 'lists.@each.state', 'active_section.id', 'lists.@each.table', ->
|
||||
@get('orders') # trigger orders, otherwise observers are not initialized/triggered (active_orders)
|
||||
if section_id = @get('active_section.id')
|
||||
lists = @get('lists').filter (l)=>( l.get('section.id') == section_id && l.get('state') == 'active' )
|
||||
|
||||
Reference in New Issue
Block a user