Model relation fixes and mobile device improvements

This commit is contained in:
2015-10-12 14:35:25 +02:00
parent 7ee9504382
commit a6c74f1872
20 changed files with 83 additions and 63 deletions
@@ -2,5 +2,5 @@ App.OrdersDisplayController = Ember.Controller.extend
sections: Ember.computed -> @store.peekAll('section')
orders: Ember.computed 'model.[]', 'globals.active_section.id', ->
orders = @get('model').filterBy('needs_supplier_attention')
orders = orders.filterBy('list.section.id', id) if id = @get('globals.active_section.id')
orders = orders.filterBy('list.table.section.id', id) if id = @get('globals.active_section.id')
orders.sortBy('created_at') # Not reversed, oldest on top, start with oldest order first :-) Customer happyness