Speccing and fixing user list loading and adding orders to other users

This commit is contained in:
2014-08-28 18:07:30 +02:00
parent af4510cdc6
commit 14791df379
9 changed files with 66 additions and 1 deletions
@@ -68,6 +68,12 @@ App.ApplicationController = Ember.Controller.extend
@set 'list.supplier.orders_in_process_count', data.count
orders_placed_count: (data)->
@set 'list.supplier.orders_placed_count', data.count
new_order: (data)->
return if @store.all('order').findProperty('id', data.order.id)
@store.pushPayload data
@store.findById('order', data.order.id).then (order)->
list = order.get('list')
list.get('orders').addObject(order)
setCurrentList: (callback)->